This commit is contained in:
zhangqinghe 2015-08-10 17:19:56 +08:00
parent a2c311730d
commit 2211e68e68

View File

@ -20,8 +20,8 @@ static char launchNotificationKey;
Method origin;
Method swizzle;
origin=class_getClassMethod([self class],@selector(init));
swizzle=class_getClassMethod([self class], @selector(init_plus));
origin=class_getInstanceMethod([self class],@selector(init));
swizzle=class_getInstanceMethod([self class], @selector(init_plus));
method_exchangeImplementations(origin, swizzle);
}