-
Notifications
You must be signed in to change notification settings - Fork 54
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
Arrow Image dissapeared #15
Comments
I could've made something wrong during the process of re-factoring the library for CocoaPods. Quite sure it has something to do with the file path(s) because I didn't made changes to that part of the code... will check this evening. |
Pushed 0.1.25 which should fix the issue. Please let me know if it can be closed now. |
I grabbed version 0.1.25 and still see the issue. |
I tried a different approach and fully tested it on iOS 6, 7.1 and 8.1 found it always working as expected, with arror correctly showing. Try to pull the 0.1.27 and see if the problem is gone for good. |
Just tried with iOS 7 and 8, but the arrow image still doesn't show up. |
I can see the icon either installing it via CocoaPods or installing it manually. Please try to install manually the library and let me know if you can see it, so at least I'll know if it's a CocoaPods-related bug or not. |
Pushed 0.1.28 with another approach taken from StackOverflow. I still can't reproduce the issue, since the image properly loads in my case... Could you try it with and without CocoaPods and tell me if it's working either way? Thanks. |
I tried the last version but image still doesn't appear. Also tried to copy the images outside de pod's bundle and doesn't work either. I debugged the code and saw that the UIImage is certainly loaded and isn't nil. Also tried to add |
I tried the same things, but I always see the image: I also tried to point to a different namespace (DownPickerr.bundle instead of DownPicker.bundle) and the image is "correctly" missing that way, just as expected. I guess it could be related to your specific CocoaPods installation? I really don't know why this is happening. The inability to reproduce it makes me unable to fix that for good. Could you try to drag the library out of CocoaPods (including .h and .m files) and install/include it manually like you did in the first place? I would like to know if this is a CocoaPods-related issue or not. |
Just removed the pod and tried with manual install. Same behaviour, the image doesn't show up :( |
Ok, so it should be an issue related to the code changes I made in 1.0.23. That's strange because I didn't touch anything related to image behaviours. Can I have your code sample with array so I can run your same check with your same data? (or any sample showing up the issue). |
Just created a "Single View Project". Added DownPicker with CocoaPods. Added a UITextField to the created View Controller and added this code to the viewDidLoad (also a DownPicker instance, of course).
But the image didn't show up. |
Thanks, will replicate the whole thing this evening and look into it. |
Use showArrowImage ( [downPicker showArrowImage:YES] ) to show imagem!! |
Just created my TestPicker project with the same identical settings mentioned by @WedgeSparda ... no image. Then I added showArrowImage:YES, as per @leaobicalho suggestion, and I got it showing. @leaobicalho : thanks for pointing it out, it seems like we were chasing rabbits. Funny thing is that showArrowImage used to be a default behaviour, but it has been probably removed somehow during the latest changes. I'm adding it back in the next release because I feel like the arrow should be there by default. @WedgeSparda : please let me know if adding the showArrowImage:YES does solve your issue too. You can remove that as soon as I publish the next release. Side note: I had [showArrowImage:YES] it in my main testing project this whole time, that's why I always show it. |
Pushed 0.1.29 with [showArrowImage:YES] set as default. Hope that will solve this issue for good. |
YEAH! It works 💃 Thank you so much. |
if (img == nil) img = [UIImage imageNamed:@"DownPicker.bundle/downArrow.png"]; // CocoaPods |
If it helps, I added the downarrow images to my project copy resources phase, and the arrow showed up. I am using Xcode 7.3 and Swift. Earlier, I did try adding it to the CocoaPod generated "Pod" project, but that did not help. |
@navneetkarnani Thanks a lot, was struggling with this until I read your comment, fixed it immediately. |
@navneetkarnani I think this is the only way to make it works with swift, thanks a lot |
I don't see anymore the arrow image over the picker.
The text was updated successfully, but these errors were encountered: