草庐IT

myBlockProperty

全部标签

objective-c - 复制属性和 Block_copy(myBlock)/[myBlock copy]

考虑:typedefvoid(^select_block_t)(UIView*);(1)@property(copy,nonatomic)select_block_tmyBlockProperty;(2)@property(strong,nonatomic)select_block_tmyBlockProperty;(3)@property(assign,nonatomic)select_block_tmyBlockProperty;和:(A)self.myBlockProperty=^(UIView*){NSLog(@"Hi");};(B)self.myBlockProperty=[