plist 是 iOS 常見的屬性列表檔案,常用來儲存使用者設定或打包資訊。本文以 customInfo.plist 為例,說明建立與讀取流程。
建立 plist 後,可加入 Dictionary 結構,例如 Student 與 Mentor。透過 NSBundle 取得檔案路徑,再用 NSDictionary 讀入。
在 viewDidLoad 中依 key 取值,並設定到多個 Label。這種做法適合結構簡單、讀取頻率不高的設定資料。