GuYinsheng
Results
3
comments of
GuYinsheng
可以考虑开个群,楼主
bundle加载按钮图片时,无法正确显示 PYAddImage [UIImage imageNamed:@"PYPhotosView.bundle/addimage"]
由于pods引用开启了动态库,因此库中的代码,无法找到对应bundle图片的路径 PYAddImage [UIImage imageNamed:@"PYPhotosView.bundle/addimage"] 应该改成,如下代码 NSBundle *bundle = [NSBundle bundleForClass:[PYPhotosView class]]; UIImage *image = [UIImage imageNamed:@"PYPhotosView.bundle/addimage" inBundle:bundle compatibleWithTraitCollection:nil];