//点击网格进行跳转
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
if(indexPath.row==0){
NSLog(@"点击了1!");
t1ViewController *t1=[t1ViewController new];
[self presentViewController:t1 animated:YES completion:nil];
}else if(indexPath.row==1){
t2ViewController *t2=[t2ViewController new];
[self presentViewController:t2 animated:YES completion:nil];
}else{
t3ViewController *t3=[t3ViewController new];
[self presentViewController:t3 animated:YES completion:nil];
}
}
网格进行跳转
最新推荐文章于 2021-05-26 07:20:54 发布