- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 去除透传,转义字符
NSXMLElement stringValue 的妙用 想了很多方法去除无果,突然发现stringValue管用 NSXMLElement *msgXml = [[DDXMLElementalloc] initWithXMLString:message.stringValueerror:nil];//message.stringValue已经解析好了
2015-12-19 22:16:12
535
原创 语音通话 切换扬声器和听筒
语音通话Category要设置成AVAudioSessionCategoryPlayAndRecord示例: //来电声音提醒 NSURL *filePath = [[NSBundlemainBundle] URLForResource: @"videoRing" withExtension:@"caf"];
2015-07-22 14:47:55
1147
原创 合并库命令
lipo -create a b -output c 示例: lipo -create /Users/lswh/Library/DeveloperXcode/DerivedData/ChatDemo-agonzdalajeacxfhdjiockfmoiur/Build/Products/Release-iphonesimulator/LittlecIM.framework/Li
2015-07-18 17:23:51
329
原创 fmdb 数据库升级 加字段
//会话表 [db executeUpdate:@"create table ChatList (Id integer primary key autoincrement,Current_User_Id text,toUserId text,fromUserId text,chatType integer,lastMessage text,lastTime tex
2015-07-09 09:16:28
570
原创 UIView 拖动窗口代码
1.坐标系在self.view- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ if ([touches count] >=1) { UITouch *touch = [touches anyObject]; //
2015-07-02 17:59:01
325
原创 fmdb使用小结
1.fmdb 设置primary key后,如果主键相同的话,insert into只能插入一条,后面插入的无效。 建表时设置主键:[db executeUpdate:@"create table FriendFullList (Jid text primary key,Name text,Use_name text,Email text,Subscription text,
2015-06-11 09:40:13
558
原创 fmdb 复制表 && 判断表是否存在
fmdb复制表语句:create table tab_newas select * from tab_old判断表是否存在:BOOL isTableExist(FMDatabase *db,NSString * tableName){ FMResultSet *rs = [dbexecuteQuery:@"select count(*) a
2015-06-10 15:58:38
2199
PushMeBaby测试开发推送工具
2015-05-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人