一、在 AppDelegate.m 中引新建視圖控制器的頭文件 #improt “MainViewController.h” 並創建
二、創建 model 類(Boss),在 .h 文件中
在 .m 文件中
三、在視圖控制器 MainViewController 的 .m 文件中引新建的 model 類
1.沙盒
2.簡單對象的讀寫操作
3.複雜對象寫入本地
一、在 AppDelegate.m 中引新建視圖控制器的頭文件 #improt “MainViewController.h” 並創建
二、創建 model 類(Boss),在 .h 文件中
在 .m 文件中
三、在視圖控制器 MainViewController 的 .m 文件中引新建的 model 類
1.沙盒
2.簡單對象的讀寫操作
3.複雜對象寫入本地
爲了便於看官實際操作和理解,直接上整個類local TestUIPageViewScene = class("TestUIPageViewScene