2020年2月9日
摘要: iOS的Sharedpreferences .plist .全名是:Property List .同android 一样,文件是xml格式的。 1.文档位置:程序user Document文件夹下 2.创建方法不同与android ,可以在xcode直接配置 。 3.使用方法: 一:创建方法,直接新 阅读全文
posted @ 2020-02-09 20:24 wp7ers 阅读(1018) 评论(0) 推荐(0)
摘要: 1.直接写文件方式*.plist:可以存储的对象有NSString、NSArray、NSDictionary、NSData、NSNumber,数据全部存放在一个属性列表文件(*.plist文件)中。 2.NSUserDefaults(偏好设置),用来存储应用设置信息,文件放在perference目录 阅读全文
posted @ 2020-02-09 18:15 wp7ers 阅读(556) 评论(0) 推荐(0)