38

01·iOS 面试题·项目中用过 Runtime 吗?

 5 years ago
source link: http://www.cocoachina.com/ios/20180814/24556.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.
我们知道静态语言在编译时期,就已经确定了函数的具体调用,而动态语言要等到运行时期才能真正确定调用哪个函数; Objective-C 是一门动态语言,它是通过 Runtime 这个运行时机制来实现的。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK