and の行にUITableView触れると、myFunction操作を実行してからテーブルをリロードします。UIActivityIndicatorここで、を呼び出しているときにを表示したいと思いますmyFunction。これらの場合、どのようなアプローチが取られますか?
これは私のコードです:
-(void)collectionView:(UICollectionView*)collectionview didSelectItemAtIndexPath:(NSIndexPath*) indexPath {
[self showLoader];
[self performSelectorInBackground:@selector(myFunction:) withObject:indexPath];
[self hideLoader];
}