UIAlertView-Blocks icon indicating copy to clipboard operation
UIAlertView-Blocks copied to clipboard

A category for UIAlertView which allows you to use blocks to handle the pressed button events rather than implementing a delegate.

Results 18 UIAlertView-Blocks issues
Sort by recently updated
recently updated
newest added

`UIAlertViewDelegate` contains method `alertViewShouldEnableFirstOtherButton:`` but your code doesn't allow to use it because it sets delegate to`self``` (this category) and so it is impossible just to write this method outside...

When using UIAlertView+Blocks in swift, the `id` constructors are exposed as static methods returning `AnyObject!`: Updating them to return `instancetype` exposes some more expected initializers: It actually feels like more...

After installing it with cocoapods, I can't find a swift alternate method for this initialize method. -(id)initWithTitle:(NSString *)inTitle message:(NSString *)inMessage cancelButtonItem:(RIButtonItem *)inCancelButtonItem otherButtonItems:(RIButtonItem *)inOtherButtonItems, ... NS_REQUIRES_NIL_TERMINATION;

iOS8 and orientation upside-down causes an actionsheet upside-down. Love to have the new UIAlertController iOS8 integration and have iOS7 backward-support without modifying my code :-)

It works normally when I use the default init method " [[UIActionSheet alloc] initWithTitle:cancelButtonItem:destructiveButtonItem:otherButtonItems]". But when i use the addButtonItem method to dynamically add ActionSheet button items, the block will...

- Renamed project and files suffix from 'Blocks' to 'ButtonItemBlocks' (to avoid '-Blocks' and '+Blocks' and other conflicts). - UIAlertView+ButtonItemBlocks.m: Added ButtonItemBlocks_AlertViewDelegate_Delegate to handle the UIAlertViewDelegate calls directly, as other...

Added delegate methods to send notifications for the below two cases - Before presenting the Alert - After dismissing the Alert

Adds a category for UIBarButtonItem to initialize with an RIButtonItem.

Added the a reference parameter to the action to get the ability to access the alertView or actionSheet. In my case I am using this to access an alertView's UITextField's...