- 博客(4)
- 收藏
- 关注
原创 CoreData简单实用
(1) 什么是CoreData 提供对象-关系映射 (ORM) 将OC对象转化为数据,保存到SQLite数据库文件中 不需要编写任何SQL语句 Employee * emp = [[Employee alloc] init]; emp.name = @”xxx”; emo.age = 12; 平时写入数据库 insert into employee (name,age) value
2016-03-12 11:22:42
308
原创 常用的工具类
//将文件写入沙盒内的可读写目录(参数含文件名的后缀名) + (void)dealWithFirstInfo:(NSString* )filenameWithPlist//写入沙盒 { //读取plist NSString* path = [[NSBundle mainBundle] pathForResource:filenameWithPlist ofType:nil];
2016-03-07 21:18:55
267
转载 四种数据持久化方法 iOS开发
1.属性列表 涉及到的主要类:NSUserDefaults,一般 [NSUserDefaults standardUserDefaults]就够用了 @interface User : NSObject @property (nonatomic, assign) NSInteger userID; @property (nonatomic, copy) NSString *name;
2016-01-06 12:28:10
357
原创 ble 4.0 iOS开发 注意点
发送数据: ①string转到data -(NSData*)stringToByte:(NSString*)string { NSString *hexString=[[string uppercaseString] stringByReplacingOccurrencesOfString:@" " withStr
2016-01-04 13:19:22
433
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅