怎么将block里面的值赋给本类的变量
- (void)loadDate
{
MWatchHistoryAPI *watchHistory = [[MWatchHistoryAPI alloc]init];
[watchHistory fetchHistoryListSetCallBack:^(NSArray *historyVideos) {
self.dataArray = [historyVideos mutableCopy];
}];
NSLog(@"sels.dataArray %@",self.dataArray);
}
我从sdk的接口中调出数据 赋给 本类的变量 然后输出为空
self.dataArray = historyVideos;
NSLog(@"sels.dataArray %@",self.dataArray);
求大牛帮忙解决下 不胜感激。。。