Does anyone know what this syntax do by the MenuDelegate with the < > brackets??? And why would someone want to complicate a piece of code like this.
@protocol MenuDelegate
- (void)optionSelected:(NSString *)option;
@end
@interface ContentMenu : UITableViewController {
NSMutableArray *_test;
id<MenuDelegate> _delegate;
}
Thanks
This syntax means that an id variable adopts the protocol called MenuDelegate.
The syntax looks strange to me as well, but not as strange as that for calling methods.