-
Notifications
You must be signed in to change notification settings - Fork 424
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
Adding a UIView contentView to the alert for generic usage #37
base: master
Are you sure you want to change the base?
Conversation
Nice, but shouldn't the title be at the top? On Tue, Sep 3, 2013 at 4:38 AM, George Villasboas
|
@iOSDevil Depends on your use case. We could easily change this behavior or add an extra property so the user can decide. My idea was to mimmic a feature of UIAlertView introduced on iOS[redacted] and suddenly pulled out on later betas: the contentView. |
Top is best for me.
On Tue, Sep 3, 2013 at 1:26 PM, George Villasboas
|
Looks great! Will take a further review soon. |
iOS6 Noticed a crash when setting a title Otherwise seems fine on iOS6 |
@iOSDevil I think the parallax effect doesn't work on iOS 6 either. Best. |
Thanks mate, I did find the new style code but not using a title looks better for how I'm using this. On Thu, Sep 5, 2013 at 3:30 PM, George Villasboas
|
I definitely found the contentView useful. I wrote a very similar "accessoryView" that does exactly the same thing. |
@rhfung Nice. I'll take a look on that. Thanks for sharing. |
Nice addition! But had to update the setContentView method and change _containerView to _contentView:
|
Usage: Just set the property -contentView: or alloc/init with the designated initializer and you're good to go.
Usage example: