Created
November 3, 2010 18:58
-
-
Save ironfounderson/661520 to your computer and use it in GitHub Desktop.
UIViewController using a delegate pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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