Skip to content
This repository was archived by the owner on Mar 3, 2019. It is now read-only.

Sample project and test app for ZPAlertView, a UIAlertView subclass which adds block-based completion procs

Notifications You must be signed in to change notification settings

zpasternack/ZPAlertViewTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

This is an example project demonstrating ZPAlertView, a UIAlertView subclass which adds completion block invocations, rather than the traditional delegate methods.

Why?

Because blocks are hot, and delegate methods are less hot. By putting the alert completion code in a block in the calling function, rather than a separate method, you can make your code much simpler, and simple is almost always better than complex. I wrote blog posts about this technique, here and here.

How's it work?

See the linked blog articles above. Check out the code. It's pretty self-explanatory.

Who's responsible for this?

I'm Zacharias Pasternack, lead developer for Fat Apps, LLC. You can check out my blog, or follow me on Twitter or App.net.

Can I use this code?

You bet. Do whatever you want with it. If you find issues, please let me know. If you make it better, please let me know.

About

Sample project and test app for ZPAlertView, a UIAlertView subclass which adds block-based completion procs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published