笔记

2018-05-09  本文已影响0人  邱ku

//代理的写法

@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

上一篇下一篇

猜你喜欢

热点阅读