controll层跳转页面_View 跳转到controll
//按鈕的響應方法
-(void)tap3Action:(UITapGestureRecognizer *)tap{
NSLog(@"點擊了中間");
//跳轉的頁面初始化
clckViewController? *cc=[[clckViewController alloc]init];
//調用下面的方法跳轉
// [[self viewController]presentViewController:cc animated:YES completion:nil];
[[self viewController].navigationController pushViewController:cc animated:YES];
}
//方法
-(UIViewController *)viewController{
for (UIView *next=[self superview]; next; next=next.superview) {
UIResponder *nexrResponder=[next nextResponder];
if ([nexrResponder isKindOfClass:[UIViewController class]]) {
return (UIViewController *)nexrResponder;
}
}
return nil;
}
總結
以上是生活随笔為你收集整理的controll层跳转页面_View 跳转到controll的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        