【发布时间】:2018-06-27 07:46:44
【问题描述】:
我有块声明
typedef void (^ServerResponse)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error);
我有变量类型
id myObj;
里面包含那个块。 问题是如何从块声明中访问变量: 数据、响应和错误通过其上的 id 类型的指针。
我正在使用这样的结构来调配 NSURLSession 方法。
【问题讨论】:
标签: objective-c objective-c-blocks swizzling