controll层跳转页面_View 跳转到controll
//按鈕的響應(yīng)方法
-(void)tap3Action:(UITapGestureRecognizer *)tap{
NSLog(@"點(diǎn)擊了中間");
//跳轉(zhuǎn)的頁面初始化
clckViewController? *cc=[[clckViewController alloc]init];
//調(diào)用下面的方法跳轉(zhuǎn)
// [[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;
}
總結(jié)
以上是生活随笔為你收集整理的controll层跳转页面_View 跳转到controll的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。