当我的工程中没有这个ViewController.h头文件时,#import "ViewController.h"会报错,我在NSObject+TFExecute.m中
1.删除#import "ViewController.h"
2.
objc_property_t *properties = class_copyPropertyList([ViewController class], &pCount);改为
objc_property_t *properties = class_copyPropertyList([UIViewController class], &pCount);
运行工程错误消失。
ps:大神,我这样做是否会影响本框架其他功能的正常使用,是否会附带产生隐藏bug?
当我的工程中没有这个ViewController.h头文件时,#import "ViewController.h"会报错,我在NSObject+TFExecute.m中
1.删除#import "ViewController.h"
2.
objc_property_t *properties = class_copyPropertyList([ViewController class], &pCount);改为
objc_property_t *properties = class_copyPropertyList([UIViewController class], &pCount);
运行工程错误消失。
ps:大神,我这样做是否会影响本框架其他功能的正常使用,是否会附带产生隐藏bug?