在參數前加?__attribute__((noescape)),
沒加時報警告:
- (NSArray*)mas_makeConstraints:(void(^)(MASConstraintMaker*))block?{
加之后:
- (NSArray*)mas_makeConstraints:(void(^)(MASConstraintMaker*))__attribute__((noescape))block {
在參數前加?__attribute__((noescape)),
沒加時報警告:
- (NSArray*)mas_makeConstraints:(void(^)(MASConstraintMaker*))block?{
加之后:
- (NSArray*)mas_makeConstraints:(void(^)(MASConstraintMaker*))__attribute__((noescape))block {