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