GCD 小代码

发布时间:2014-10-23 23:23:54
来源:分享查询网

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{         _myHeadImage=[[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[[NSUserDefaults standardUserDefaults]objectForKey:kMY_USER_Head]]]]retain];         _userHeadImage=[[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:_chatPerson.userHead]]]retain];                  dispatch_async(dispatch_get_main_queue(), ^{             [msgRecordTable reloadData];         });     });

返回顶部
查看电脑版