配合hook的使用 防崩溃
- (id)hook_objectAtIndex:(NSUInteger)index { if (index < self.count) { return [self hook_objectAtIndex:index]; } else { #ifdef DEBUG AC_Assert(NO); NSAssert2(YES, @"aaaaa%d , count %d", index, 2); #endif return nil; } } 复制代码
本文共 291 字,大约阅读时间需要 1 分钟。
配合hook的使用 防崩溃
- (id)hook_objectAtIndex:(NSUInteger)index { if (index < self.count) { return [self hook_objectAtIndex:index]; } else { #ifdef DEBUG AC_Assert(NO); NSAssert2(YES, @"aaaaa%d , count %d", index, 2); #endif return nil; } } 复制代码
转载地址:http://szgum.baihongyu.com/