Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不显示加号图片 #206

Open
zengsihao opened this issue Sep 7, 2019 · 2 comments
Open

不显示加号图片 #206

zengsihao opened this issue Sep 7, 2019 · 2 comments

Comments

@zengsihao
Copy link

No description provided.

@guyinsheng
Copy link

bundle加载按钮图片时,无法正确显示
PYAddImage [UIImage imageNamed:@"PYPhotosView.bundle/addimage"]

@guyinsheng
Copy link

由于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];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants