//直接定义
@property (nonatomic, copy) void(^block)(NSInteger);
//方法中定义
block:(void(^) (NSInteger index))block;
//其他定义
typedef void(^Block)(NSInteger index);
@property (nonatomic, copy) Block block;
//直接定义
@property (nonatomic, copy) void(^block)(NSInteger);
//方法中定义
block:(void(^) (NSInteger index))block;
//其他定义
typedef void(^Block)(NSInteger index);
@property (nonatomic, copy) Block block;
本文标题:iOS Block定义
本文链接:https://www.haomeiwen.com/subject/dqxeattx.html
网友评论