[基本解决]swift中UIImage用NSCoder执行decodeObjectForKey解码出错
crifan 9年前 (2016-01-14) 2242浏览 0评论
代码: override init(){ id = "" md5 = "" type = FileType.Other name =...
在路上on the way - 走别人没走过的路,让别人有路可走
crifan 9年前 (2016-01-14) 2242浏览 0评论
代码: override init(){ id = "" md5 = "" type = FileType.Other name =...
crifan 9年前 (2016-01-13) 2693浏览 0评论
写成: fileManager.createDirectoryAtPath(url_conversationItemList.path!, withIntermediateDirectories: true, attributes: nil) ...
crifan 9年前 (2016-01-13) 3812浏览 0评论
代码: let key_conversationItemList = gCurUserItem.id + "/conversationItemList" var conversationItemList:[...
crifan 9年前 (2016-01-13) 2697浏览 0评论
NSKeyedArchiver和Core Data:用于持久化数据 持久化的数据保存到什么地方:本地文件系统或NSUserDefaults NSUserDefaults:适合于数据量小的 NSKeyedArchiver:数据量大的,不适合经常变化的数...
crifan 9年前 (2016-01-13) 1565浏览 0评论
在 [整理]swift iOS程序状态保存和恢复 期间,学习到: 应用程序数据的保存和恢复,不是采用状态保存和恢复的机制 所以,此处改为: 搞懂数据的保存和恢复,去保存和恢复程序的数据 以便于下次启动程序之后,数据不用再从网络加载了。 一些库: Al...
crifan 9年前 (2016-01-13) 2823浏览 0评论
参考一堆资料: React Native | A framework for building native apps using React Getting Started – React Native | A framework for buil...
crifan 9年前 (2016-01-11) 1981浏览 0评论
之前实现一个自定义的视图控制器,然后被代码调用: self.showViewController(gMainNVC, sender: gMainNVC) 后,保存和恢复的函数,会被调用到: encodeRestorableStateWit...
crifan 9年前 (2016-01-11) 3608浏览 0评论
已经实现了基本的: [基本解决]swift保存程序当前状态和界面 但是此处程序是各种复杂的视图,所以要去研究复杂的视图如何实现: iOS swift 恢复程序状态 Swift App状态恢复-State Restoration(一) – ...
crifan 9年前 (2016-01-09) 2729浏览 0评论
代码: enum ContactType{ case Invalid case Special // special for Add/Remove/… items case Person //single p...
crifan 9年前 (2016-01-09) 4073浏览 0评论
代码: // MARK: – State Restoring private let encodeKeyTeamItemList = "encodeKeyTeamItemList" ...