TFEasyCoder icon indicating copy to clipboard operation
TFEasyCoder copied to clipboard

一个可以用copy和paste提高编程效率的框架:为UIKit和Foundation的所有公开类添加了快速创建对象的方法并且为这些类的所有非私有属性添加了链式编程方法.

Results 11 TFEasyCoder issues
Sort by recently updated
recently updated
newest added

/** * 获取当前机器型号 * * @return 当前机器型号名称 * 需要导入框架 #include 和#include */ + (NSString *)tf_code_pre(currentDeviceModel){ int mib[2]; size_t len; char *machine; mib[0] = CTL_HW; mib[1] = HW_MACHINE; sysctl(mib, 2, NULL,...

TF_LAZYLOAD_OBJC_CUS(UIButton, gBtn4HideSelf, ^(UIButton *ins){ [ins setTitle:@"显示自我" forState:UIControlStateNormal]; [ins setTitleColor:[UIColor redColor] forState:UIControlStateNormal]; /** 下面方法不会被执行,即:rac不能在tf框架的懒加载中使用。 */ // [[ins rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(__kindof UIControl * _Nullable x) { // ins.selected = !ins.selected; // if(ins.selected){//正显示自我 //...

Non-public API usage: The app contains or inherits from non-public classes in Frameworks/TFEasyCoder.framework/TFEasyCoder: CAEmitterBehavior

Dear developer, We have discovered one or more issues with your recent delivery for "xx". To process your delivery, the following issues must be corrected: Non-public API usage: The app...

现在宏定义为: /** * 懒加载属性,class 初始化方法为init,使用方法见github * @param __CLASS 属性类型 * @param __PROPERTY 属性定义值 * @param __BLOCK 一个返回属性 * @return 属性 */ #define TF_LAZYLOAD_OBJC_CUS(__CLASS,__PROPERTY,__BLOCK)\ TF_SYNTHESIZE(__PROPERTY);\ -(__CLASS *)__PROPERTY{\ if (!_##__PROPERTY)\ _##__PROPERTY =...

懒加载中block代码,大多时候我们是不希望在属性getter方法被调用时再次执行,所以需要修正。

代码如下; TF_LAZYLOAD_OBJC(UIButton, button1); TF_LAZYLOAD_OBJC(UIButton, button2); TF_LAZYLOAD_OBJC(UIButton, button3); - (id) initWithFrame:(CGRect)aRect { self = [super initWithFrame:aRect]; if (self) { kdeclare_weakself; CGFloat buttonWidth = [UIScreen mainScreen].bounds.size.width/3; [self.button1 easyCoder:^(UIButton *ins) { [ins setTitle:@"收藏"...

苹果邮件: We have discovered one or more issues with your recent delivery for "xxAPP". To process your delivery, the following issues must be corrected: Missing Info.plist key - This app...

大神是否尝试过swift下桥接此类,效果如何?