To define a protocol in a class header as
@protocol MyProtocol
-(void) myfunction;
@end
The header file of the class that implements a protocol looks like the following, notice the syntax is quite similar to category but uses angle bracket instead of parenthesis.
@interface MyUserClass : NSObject
Jonathan
No comments:
Post a Comment