协议的继承

共有方法都可以继承下来

 

@protocol OneDelegate <nsobject>
 
@required
 
- (void)backStr:(NSString *)str;
 
@end
 
 
@protocol TwoDelegate <onedelegate>
 
@optional
 
- (void)backInt:(int)i;
 
@end
posted @ 2016-06-29 15:59  春新  阅读(135)  评论(0编辑  收藏  举报