摘要: 使用第三方框架 XMPPFramework #import "ViewController.h"#import "XMPPFramework.h"@interface ViewController (){ XMPPStream *_stream; XMPPRoster *_roster;}@end... 阅读全文
posted @ 2015-09-24 17:20 了解2号 阅读(304) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import "DDXML.h"@interface ViewController ()@end@implementation ViewController/*解析XML:开源框架:KissXML 依赖:libxml2.2.dylib(项目配置-... 阅读全文
posted @ 2015-09-24 08:50 了解2号 阅读(261) 评论(0) 推荐(0) 编辑
摘要: //本地推送---无需网络,由本地发起 UILocalNotification *localNotification = [[UILocalNotification alloc]init];//设置推送时间间隔并开启推送fireDatelocalNotification.fireDate = [NS... 阅读全文
posted @ 2015-09-24 08:18 了解2号 阅读(172) 评论(0) 推荐(0) 编辑
摘要: GCD的使用一:队列1.串行队列:添加到队列中的任务是一个一个执行的2.并行(发)队列:添加到队列中的任务是多个同时执行的(一个队列中的多个任务可以同时执行)3.主队列:里面的任务都是在主线程执行的,可以理解为主队列就是串行队列的一种4.全局队列:并行(发)队列二:同步、异步1、同步:需要后面的任务... 阅读全文
posted @ 2015-09-24 08:01 了解2号 阅读(225) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; /*-----------------... 阅读全文
posted @ 2015-09-24 07:58 了解2号 阅读(283) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; //开启多线程方法一// [self ... 阅读全文
posted @ 2015-09-24 07:52 了解2号 阅读(198) 评论(0) 推荐(0) 编辑