Skip to content

Instantly share code, notes, and snippets.

@Teino1978-Corp
Created November 10, 2015 09:45
Show Gist options
  • Save Teino1978-Corp/c8aa2433c49ec0c9d947 to your computer and use it in GitHub Desktop.
Save Teino1978-Corp/c8aa2433c49ec0c9d947 to your computer and use it in GitHub Desktop.
Protocol
@interface RootTableViewController : UITableViewController <delegation1, delegation2>
...
@end
@property (weak) id<protocolName> delegate;
@protocol myProtocol <NSObject>
@required
- (void)method1;
@optional
- (void)method2;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment