-
Notifications
You must be signed in to change notification settings - Fork 228
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
Create bundle #54
base: master
Are you sure you want to change the base?
Create bundle #54
Conversation
In my case, this commit fixes #56 slider is not shown bug. So, if you need use_frameworks! options, then use this @ytakzk's version before it is merged into master.
|
@ytakzk Shouldn't we change - (UIImage *)imageFromBundle:(NSString*)imageName {
NSBundle* bundle = [NSBundle bundleForClass:[NMRangeSlider class]];
NSString *imagePath = [bundle pathForResource:imageName ofType:@"png"];
UIImage *image = [UIImage imageWithContentsOfFile:imagePath];
return image;
} bundle search path? Like this link NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"MyBundle" ofType:@"bundle"];
NSBundle *bundle = [NSBundle bundleWithPath:bundlePath]; |
@chanil1218 Sorry, what do you mean by that? |
@ytakzk checkout #56 issue. In my commit - https://github.com/chanil1218/NMRangeSlider/commit/c89890cc60d2328122d41e369a4e30aafb1b008b, I changed structure regarding resources bundle, and I confirmed it works. So, the question I want to ask you is, NSBundle* bundle = [NSBundle bundleForClass:[NMRangeSlider class]]; Is this reference proper for I am not sure my claim is correct, but it seems that your change using CocoaPods bundle make image nil sometimes. |
Can we get one of these two solutions integrated and a new pod sent out? |
so is this going to be merged :/? |
I second the request to merge this pull request. It's not ideal to have the hack in my Podfile forever. Update: just do |
chanil1218 seems to have deleted their fork. |
Yeah, same problem here. We probably should have forked @chanil1218 branch ^^ |
Hm. Let's try this: Update: It works for me. |
In NMRangeSlider.m, images are loaded from a bundle named NMRangeSlider, but it doesn't has such a bundle so I create NMRangeSlider bundle.
It will be helpful for Swift projects.