在AppDelegate.h文件中将@property (nonatomic, weak) id reactDelegate;添加到@interface AppDelegate : UIResponder 后面即可。示例代码如下:
#import #import #import
@interface AppDelegate : UIResponder
@property (nonatomic, strong) UIWindow *window; @property (nonatomic, weak) id reactDelegate;
@end
上一篇:编译错误:“HELVETICAcannotberesolvedorisnotafield”
下一篇:编译错误:“List<A>”不包含名为“ToList”的定义。