上一页 1 ··· 4 5 6 7 8

2015年9月7日

OC对数组排序的方法

摘要: 方法一: 使用sortUsingSelector如: [_cards sortUsingSelector:@selector(isSortByContactName:)];[_cards sortUsingSelector:@selector(isSortBYPhoneNumber:)];-(BOO... 阅读全文

posted @ 2015-09-07 13:57 Baymax01 阅读(206) 评论(0) 推荐(0) 编辑

sqlite事务处理

摘要: 1 //插入批量数据,可启用事务 2 - (void)insertDataWithCount:(NSInteger)count isUseTransaction:(BOOL)isUse{ 3 if (isUse) { 4 //手动启用事务 5 BOOL is... 阅读全文

posted @ 2015-09-07 11:50 Baymax01 阅读(233) 评论(0) 推荐(0) 编辑

2015年9月6日

封装数据库

摘要: 1 #import "DBManager.h" 2 #import "FMDatabase.h" 3 @implementation DBManager 4 { 5 FMDatabase *_fmdb; 6 NSLock *_lock; 7 } 8 +(DBMana... 阅读全文

posted @ 2015-09-06 22:44 Baymax01 阅读(164) 评论(0) 推荐(0) 编辑

JsonModel的使用

摘要: #import "JSONModel.h" 1 @protocol test2Model 2 @end 3 4 5 @interface test2Model : JSONModel 6 @property (nonatomic,strong)NSString * qwrqwr; 7 @prop... 阅读全文

posted @ 2015-09-06 22:38 Baymax01 阅读(136) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8

导航