文章标题
2015-08-02 10:49
281 查看
asdfjk
dj- (void)dealloc { [XXJNoteCenter removeObserver:self.collectionView]; } // - (void)loadNotifyInfoData { // 使用网络检测 [[AFNetworkReachabilityManager sharedManager] startMonitoring]; [[AFNetworkReachabilityManager sharedManager] setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) { if (status == 1 || status == 2) { // 发送网络请求 获取通知分组数据 [[NetworkTools sharedNetworkTools] loadNotifyInfoGroupDataSuccess:^(NSArray *noticeGroupsArr, NSInteger resultCode, NSString *message) { if (resultCode == 1) { // [SVProgressHUD showWithStatus:message]; // // dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ // [SVProgressHUD dismiss]; // }); // 进行字典装模型 DDLogInfo(@"%@",noticeGroupsArr); #warning TODO 这里需要处理放回来的数据 (可能存在奔溃!) NotifyInfoGroup *notifyInfoGroup = [NotifyInfoGroup objectWithKeyValues:noticeGroupsArr]; DDLogInfo(@"noticeGroupsArr = %@",noticeGroupsArr); } else { [SVProgressHUD showWithStatus:message]; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [SVProgressHUD dismiss]; }); } } failure:^(NSError *error) { DDLogError(@"%s ---- error = %@",__func__, error); }]; } DDLogInfo(@"%zd",status); }]; }
相关文章推荐
- hash_map和map的区别
- C++面向对象程序设计 笔记2(Class with pointer members)
- Leetcode Q14 :Longest Common Prefix
- 58 - 二叉树的中序遍历的下一个节点
- hiho一下 第五十七周 高斯消元·二(高斯消元解异或方程组)
- Appium - WebView测试(Android)
- 单例模式
- 为什么margin-top值不是作用域父元素
- 假期
- php-面向对象(3)
- 余弦推倒
- 并查集的介绍及实现
- 概率霍夫变换来检测直线——HoughLinesP参数分析
- Velocity + log4j + Spring MVC + Spirng + MyBatis + Maven整合
- Delphi DLL的创建、静态 以及动态调用
- php-面向对象(2)
- 1099. Build A Binary Search Tree (30)
- leetcode-Maximum Subarray
- js中window和document对象及如何操作iframe
- php-面向对象(1)