Adding a UIView contentView to the alert for generic usage#37
Adding a UIView contentView to the alert for generic usage#37ghvillasboas wants to merge 1 commit intoSumi-Interactive:masterfrom
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: