https://github.com/ianmurrays/imalertview
Blocks-enabled UIAlertView
https://github.com/ianmurrays/imalertview
Last synced: 2 months ago
JSON representation
Blocks-enabled UIAlertView
- Host: GitHub
- URL: https://github.com/ianmurrays/imalertview
- Owner: ianmurrays
- Created: 2012-11-08T21:24:55.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-20T17:23:59.000Z (over 11 years ago)
- Last Synced: 2025-01-19T20:57:54.172Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
IMAlertView
===========IMAlertView adds a blocks-based interface to UIAlertView, allowing the developer to avoid implementing a delegate for it.
Example Uses
------------IMAlertView *alert = [IMAlertView alertViewWithTitle:@"What to do?" message:@"What do you want to do?"];
// Add a button with no action, which dismisses the alert
[alert addButtonWithTitle:@"Nothing"];
// Add a button with an action, which executes the block when tapped.
[alert addButtonWithTitle:@"Party!" handler:^{
[PartyFactory partyHard];
}];