[問題] 直接看到 CoreData 內資料的工具
最近在練習寫Core Data的存取...
想請問在Mac上
有沒有什麼工具可以直接讀取Core Data的資料呢?
不然都只能透過 simulator 用個TableView去抓資料出來看是否有寫進去
另外想請問
CoreData在ios app內的讀取
我是使用建立 project 一開始時把 Use Core Data 打勾
那當我在各個ViewController要去存取Core Data的時候
是這樣使用嗎?
NSManagedObjectContext *managedObjectContext =
[[[UIApplication sharedApplication] delegate] managedObjectContext];
那這樣不就有要使用到的Controller都要去 import AppDelegate.h 呢?
新手上路,還請各位前輩不吝指教!
謝謝囉<(_._)>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.112.197.158
→
09/19 13:14, , 1F
09/19 13:14, 1F
→
09/19 13:15, , 2F
09/19 13:15, 2F
→
09/19 13:16, , 3F
09/19 13:16, 3F
→
09/19 13:16, , 4F
09/19 13:16, 4F
→
09/19 13:16, , 5F
09/19 13:16, 5F
→
09/20 00:26, , 6F
09/20 00:26, 6F
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章