在 Objc 裡的 Category 包成 SDK 的時候,在 Swift 看不到是為什麼?
NSNumber 繼承自什麼?
什麼是 header search paths?
LIBRARY_SEARCH_PATHS
與 HEADER_SEARCH_PATHS
,讓 IDE 知道需要額外搜尋的目錄LD_RUNPATH_SEARCH_PATHS
加入搜尋目標,在軟體啟動時會馬上報 Image not found 的 crash選用 Objc 當 SDK 的開發語言,主要是能穩定又安全的讓 Objc/Swift 呼叫。因為 Swift 的 Struct 無法被 Objc 呼叫。我們無法決定客戶要用 Objc 甚至是哪一版的 Swfit。因此採用 Objc 是最好的。
什麼是 linker?(題目記不清楚)
Nil/nil/NSNull 差別在哪?
除了 Nil/nil/NSNull 之外還有什麼方式可以表達沒有值?
WebUndefined
(https://developer.apple.com/documentation/webkit/webundefined)AVFoundation 的底層有一些是用 WebKit 實作的,有多少不確定
WebKit 是 Open source 的專案,從第一台 iPhone 就有了。
NSString *text = @"hello";, "hello" 的 retain count 是多少?
NSString *text = @"\0"; 會發生什麼事?文字長度是多少?
一堆 queue 跟 thread 的討論
在 Objc 使用 get 開頭的 method 是指要拿 C 層級的資料,這是 Objc 的 convention。Objc 自己的 getter 不會用 get 開頭。
Swift Optimization Level 有哪幾種優化等級?差別在哪?
這邊的 optimization 看起來已經變預設值了,現在在 clang 和 Swift compiler 則有不同的 opimization 選項。
Whole-module optimization can be enabled with the -whole-module-optimization (or -wmo) compiler flag, and in Xcode 8 it is turned on by default for new projects.
https://swift.org/blog/whole-module-optimizations/
https://swift.org/blog/osize/
Swift 的 Void 真實身分是什麼?
Objc 的 static variable 存在哪裡?
Objc 的 Block 能不能放進 NSArray?
Objc 的 Block 能不能寫遞迴?
Swift 的 closure 能不能寫遞迴?
DataSource 跟 Delegate 最關鍵的差異是什麼?