iOS 数据持久化(三)NSUserDefaultsDemo

时间:2016-12-11 08:26:47
【文件属性】:
文件名称:iOS 数据持久化(三)NSUserDefaultsDemo
文件大小:52KB
文件格式:ZIP
更新时间:2016-12-11 08:26:47
iOS 数据持久化 UserDefault nscoding iOS中有五种持久化数据的方式:属性列表、对象归档、NSUserDefaults、SQLite3和Core Data NSUserDefaults官方文档介绍: NSUserDefaults类为和默认系统类交互提供了一种编程接口。默认系统允许应用程序去定制其行为,为了符合用户的喜好。举例来说,你可以允许用户去决定在应用程序中显示的计量单位或者文档多久会自动保存。应用程序在用户默认数据库中,通过给一系列参数赋值来记录类似的喜好。这些参数被称为默认值,因为它们通常被用于一个程序在启动时或默认状态下的默认工作状态。
【文件预览】:
UserDefaultsDemo
----UserDefaultsDemo.xcodeproj()
--------project.xcworkspace()
--------.svn()
--------xcuserdata()
--------project.pbxproj(15KB)
----.DS_Store(6KB)
----.svn()
--------tmp()
--------props()
--------entries(287B)
--------prop-base()
--------text-base()
----UserDefaultsDemo()
--------RootViewController.xib(6KB)
--------en.lproj()
--------UserDefaultsDemo-Prefix.pch(335B)
--------.svn()
--------main.m(342B)
--------WelcomeViewController.xib(6KB)
--------WelcomeViewController.h(235B)
--------WelcomeViewController.m(750B)
--------RootViewController.h(229B)
--------Student.m(1KB)
--------Default-568h@2x.png(18KB)
--------Student.h(433B)
--------UserDefaultsDemo-Info.plist(1KB)
--------AppDelegate.h(283B)
--------Default.png(6KB)
--------Default@2x.png(16KB)
--------RootViewController.m(748B)
--------AppDelegate.m(5KB)

网友评论

  • 很不错的代码
  • 代码很详细,学习了