其实Runtime已经开源: 下载objc4-437.1.tar.gz来看看源码:
参考: http://blog.cocoabit.com/2014-10-06-yi-li-jie-objctive-c-runtime/