//代理的写法
@protocol erViewControllerDelegate<NSObjct>
@required
-(void)hahah:(NSString *)string;
@end
@property(nonatomic,weak)id delegate;
//Block的写法
typedef void(^erViewControllerBlock)(NSString*sTring);
@end
@property(nonatomic,strong)erViewControllerBlock block;
@end
网友评论