Skip to content

Instantly share code, notes, and snippets.

@ironfounderson
Created November 3, 2010 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironfounderson/661520 to your computer and use it in GitHub Desktop.
Save ironfounderson/661520 to your computer and use it in GitHub Desktop.
UIViewController using a delegate pattern
@class BookViewController;
@protocol BookViewControllerDelegate
- (void)bookViewControllerDidCancel:(BookViewController *)controller;
- (void)bookViewControllerDidSave:(BookViewController *)controller;
@end
@interface BookViewController : UIViewController {
id <BookViewControllerDelegate> delegate_;
}
@property (nonatomic, assign) id <BookViewControllerDelegate> delegate;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment