0
collectionViewCell을 두드릴 때 UITableViewController
을 표시하려고합니다. didSelectItemAtIndexPath를 사용하여이 작업을 수행했습니다. collectionView를 누를 때 아무 일도 일어나지 않고 UI를 눌렀을 때 차단되고 아무 것도 할 수 없습니다. 오류/로그 메시지가 표시되지 않습니다. 왜 viewController를 제시하지 않고 왜 오류 메시지가 표시되지 않습니까?UITableViewController 블록 제시 UI
있는 UITableViewController 인터페이스 빌더는 :
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
HomeProfileViewController *hpvc = [storyboard instantiateViewControllerWithIdentifier:@"NavProfile"];
hpvc.idString= [[homesDic objectAtIndex:indexPath.item] objectForKey:@"idString"];
hpvc.imageArray = [[NSMutableArray alloc]init];
hpvc.imageArray = [imageDic objectAtIndex:indexPath.item];
[self presentViewController:hpvc animated:YES completion:nil];
}
왜 두 번'hpvc.imageArray ='입니까? –