We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS configTableView 在子线程获取 imagePicker viewController 会有警告,修改如下代码
if (![[TZImageManager manager] authorizationStatusAuthorized]) { return; } __block TZImagePickerController *imagePickerVc = (TZImagePickerController *)self.navigationController; if (self.isFirstAppear) { [imagePickerVc showProgressHUD]; } dispatch_async(dispatch_get_global_queue(0, 0), ^{ [[TZImageManager manager] getAllAlbums:imagePickerVc.allowPickingVideo allowPickingImage:imagePickerVc.allowPickingImage needFetchAssets:!self.isFirstAppear completion:^(NSArray<TZAlbumModel *> *models) { dispatch_async(dispatch_get_main_queue(), ^{ self->_albumArr = [NSMutableArray arrayWithArray:models]; for (TZAlbumModel *albumModel in self->_albumArr) { albumModel.selectedModels = imagePickerVc.selectedModels; } [imagePickerVc hideProgressHUD]; if (self.isFirstAppear) { self.isFirstAppear = NO; [self configTableView]; } if (!self->_tableView) { self->_tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain]; self->_tableView.rowHeight = 70; self->_tableView.tableFooterView = [[UIView alloc] init]; self->_tableView.dataSource = self; self->_tableView.delegate = self; [self->_tableView registerClass:[TZAlbumCell class] forCellReuseIdentifier:@"TZAlbumCell"]; [self.view addSubview:self->_tableView]; } else { [self->_tableView reloadData]; } }); }]; }); }```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
iOS configTableView 在子线程获取 imagePicker viewController 会有警告,修改如下代码
The text was updated successfully, but these errors were encountered: