27

苹果开发中文网站运行时Hook所有Block方法调用的技术实现

 5 years ago
source link: http://www.cocoachina.com/ios/20190418/26840.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
iOS系统中一共有:C函数、Block、OC类方法三种形式的方法调用。Hook一个方法调用的目的一般是为了监控拦截或者统计一些系统的行为。Hook的机制有很多种,通常良好的Hook方法都是以AOP的形式来实现的。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK