![240](https://upload.jianshu.io/users/upload_avatars/12357665/e41fce18-204f-4b5d-aadb-eba0a6096b69.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
1棚贾、KVO簡介 KVO官方簡介[https://developer.apple.com/library/archive/documentatio...
KVC底層實(shí)現(xiàn)的是setter和getter方法伪很。 KVC簡介 代碼準(zhǔn)備蘋果官方文檔查閱[https://developer.apple.com...
準(zhǔn)備代碼 從上圖分析出進(jìn)入main函數(shù),initialize并沒有執(zhí)行群嗤。 從上圖中分析出,點(diǎn)擊下向下執(zhí)行壳坪,initialize執(zhí)行了午磁。 調(diào)用cl...
1、類拓展是匿名的分類懊昨。2窄潭、類拓展可以為類添加屬性和方法(類拓展添加的屬性和方法是私有的)。3酵颁、類拓展在編譯時(shí)作為類的一部分編譯嫉你,讀取的時(shí)候直接...
通過runtime源碼分析 代碼塊 輸出結(jié)果:2021-11-07 11:52:01.460879+0800 TestClass[1483:52...
Runtime的介紹:Legacy(傳統(tǒng)版本) Objective 1.0 Modern(現(xiàn)行版本) Objective 2.0傳統(tǒng)版本?于O...
類的緩存,其中包含struct objc_class:objc_object {//Class isa,Class superclass,cac...
//運(yùn)行可執(zhí)行文件func runExecutableFile(_ executableURL: String, _ args: [String...