static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[objc_getClass("__NSArrayI")
swizzleMethod:@selector(objectAtIndex:)
withMethod:@selector(cf_objectAtIndex:)];
});
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[objc_getClass("__NSArrayI")
swizzleMethod:@selector(objectAtIndex:)
withMethod:@selector(cf_objectAtIndex:)];
});
本文标题:Method Swizzling处理数组越界
本文链接:https://www.haomeiwen.com/subject/hzfvhhtx.html
网友评论