TFEasyCoder icon indicating copy to clipboard operation
TFEasyCoder copied to clipboard

NSObject+TFExecute.m文件中是否去掉引用 #import "ViewController.h"更好?

Open Dast1Woop opened this issue 7 years ago • 1 comments

当我的工程中没有这个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?

Dast1Woop avatar Mar 06 '17 08:03 Dast1Woop

非常感谢反馈,框架犯了一个低级错误,上面提到的错误已改正,重新clone一份源码直接覆盖即可。

shmxybfq avatar Mar 07 '17 08:03 shmxybfq