开发中无意间出现Unable to deallocate sen

2017-07-13  本文已影响0人  sttech

看到deallocate 的时候我以为是什么内存的问题


出现问题

解决问题方法 将 代码放到主线程中去执行就可以啦

       dispatch_async(dispatch_get_main_queue(), ^{
                TH_SearchResultTea_CollectionVC * teaSearch = [[TH_SearchResultTea_CollectionVC alloc] initWithType:TH_CollectionViewVCTypeSearchTeaResult keyWords:keyString];
                [self.navigationController pushViewController:teaSearch animated:YES];
            });
上一篇下一篇

猜你喜欢

热点阅读