Skip to content

Instantly share code, notes, and snippets.

@ironfounderson
Created November 3, 2010 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ironfounderson/661556 to your computer and use it in GitHub Desktop.
Save ironfounderson/661556 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