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
Toast Doesn't Appear Inside CollectionView didSelectItemAtIndexPath #27
Comments
Your code doesn't seem to have any problem. Could you please let me know more context? I can't figure out the problem with your code. |
I actually was playing with the code some and it actually has to do with how the ViewController is presented. Originally I had used navigationController.presentViewController, and using that I was not able to see a Toast message. If I changed the code to use navigationController.pushViewController, then the toast works properly. |
You mean the toast message from modal view controller won't be shown? |
Yes that's correct |
Could you please test with this? Replace the line 104 at Before UIApplication.sharedApplication().keyWindow?.subviews.first?.addSubview(self.view) After UIApplication.sharedApplication().windows.first?.addSubview(self.view) If it works, I'll make a new release. |
Yes that fixed it. |
Great. Then I'll make a new release. Thanks! |
I have a UICollectionView where I let the user select up to 5 photos. After 5 are selected I'm trying to show a toast message informing the user only 5 photos can be selected. I am using JLToast throughout the code, however here it does not show. The UICollectionView is within a UIViewController. Here is the code I am using within didSelectItemAtIndexPath:
The println gets printed correctly, but I don't see a toast.
The text was updated successfully, but these errors were encountered: