Skip to content

Instantly share code, notes, and snippets.

@FahimF
Forked from ironfounderson/gist:661556
Created May 16, 2012 05:31
Show Gist options
  • Save FahimF/2707734 to your computer and use it in GitHub Desktop.
Save FahimF/2707734 to your computer and use it in GitHub Desktop.
UIViewController using blocks
@class BookViewController;
typedef void(^BookViewControllerResponse)(BookViewController *controller);
@interface BookViewController : UIViewController {
BookViewControllerResponse cancelBlock_;
BookViewControllerResponse saveBlock_;
}
@property (nonatomic, copy) BookViewControllerResponse cancelBlock;
@property (nonatomic, copy) BookViewControllerResponse saveBlock;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment