ITeye博客

2015 年文章归档

共 1 篇文章

IOS调试

#include "objc/runtime.h" @interface AppDelegate () @end UIApplication *_tapplication; void (*origMehtodImp)(id,SEL,SEL,id,id,UIEvent *); void MethodSwizzle(Class c,Class c2,SEL origSEL,SEL overrideSEL) { Method origMethod = class_getInstanceMethod(c, origSEL); Method overrideMethod= class_getInsta…

2015-03-11 15:59