Universal-Jump-ViewController icon indicating copy to clipboard operation
Universal-Jump-ViewController copied to clipboard

【demo】万能动态跳转界面 - runtime

Results 6 Universal-Jump-ViewController issues
Sort by recently updated
recently updated
newest added

GitHub changed the way Markdown headings are parsed, so this change fixes it. See [bryant1410/readmesfix](https://github.com/bryant1410/readmesfix) for more information. Tackles bryant1410/readmesfix#1

NSDictionary *userInfo = @{ @"class": @"HSFeedsViewController", @"property": @{ @"ID": @"123", @"type": @"12" } }; 如果传入的class错误,也会导致crash if (!newClass) { Class superClass = [NSObject class]; newClass = objc_allocateClassPair(superClass, className, 0); objc_registerClassPair(newClass); }...

问题描述:类中存在BOOL属性、iPhone5(包括5)之前的设备crash。 原因:iPhone5之后,为32bit系统,BOOL用signed char 类型表示,64bit用bool类型表示。在使用kvc的时候,系统将NSString类型转化成signed char时没有对应方法导致crash。 解决方法:可以将类中BOOL类型参数改成NSString或者NSInteger类型。 update:2016.07.13 该问题还存在于NSInteger,NSUInteger,CGFloat等,给controller赋值的时候,基于runtime自己写了个方法如下: ``` /** * 给对象赋值 * * @param obj 任意对象 * @param paramers 传入的参数,参数名需要和obj对象属性同名 */ - (void)setProptyWithObject:(id)obj paramers:(NSDictionary *)paramers { const char *className...