NSDictionary-NilSafe icon indicating copy to clipboard operation
NSDictionary-NilSafe copied to clipboard

How we made NSDictionary nil safe at Glow

Results 6 NSDictionary-NilSafe issues
Sort by recently updated
recently updated
newest added

In the project using an NSDictionary - NilSafe, the use of a cell in a development side, a sliding a few times, not sideslip phenomenon, after inspection, found that this...

1. remove code will never be executed (the if statement above this one has continued) 2. update pod version

将方法交换那一块改为以下这样子,原有的实现在系统API使用到NSNull的时候会crash,因为按原有方法在做NSNull swizzle的时候会添加方法失败,消息转发的相关函数是没有默认实现的 ` Method originMth = class_getInstanceMethod(self, originSel); Method altMth = class_getInstanceMethod(self, altSel); if (!originMth || !altMth) { return NO; } BOOL success = class_addMethod(self, originSel, method_getImplementation(altMth), method_getTypeEncoding(altMth)); if (success)...

经过测试,当这个nilsafe文件加入之后,会导致facebook无法登录。 after test, after migrate this sources , that may cause can not login with Facebook. and Facebook work fine after I remove this sources...

self.navigationItem.rightBarButtonItem = ; 自定义系统导航栏右按钮会莫名导致内存暴涨,找不到原因