美文网首页iOS
iOS Block定义

iOS Block定义

作者: CCSHCoder | 来源:发表于2017-09-13 13:33 被阅读1789次
    //直接定义
    @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