美文网首页
View 跳转到controll

View 跳转到controll

作者: 武小倩 | 来源:发表于2017-02-13 18:36 被阅读0次

//按钮的响应方法

-(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;

}

相关文章

  • View 跳转到controll

    //按钮的响应方法 -(void)tap3Action:(UITapGestureRecognizer *)tap...

  • formidable上传

    view: controll:

  • iOS中MVC设计模式

    MVC(Model View Controller)模型(model)-视图(view)-控制器(controll...

  • MVVM

    MVVM(Model View View-Mode) 一种可以很好地解决Massive View Controll...

  • MVP模式与MVC模式的比较

    MVC模式:(model-view-controller) 视图层(view):显示数据 控制层(controll...

  • MVC

    M : model app目录下V : view resources/views下C : controll...

  • MV*

    共通点:在 View 与 Model 直接增加一个隔离层,解除强耦合关系 MVC View -> Controll...

  • TableView与其他控件(View)混合显示

    之前学习TableView的时候,都是把它作为唯一的View呈现的,所以整个Scene的View Controll...

  • SAP CRM WebClient UI和Hybris的cont

    CRM WebUI 通过当前view content id拿到controller id,进而拿到controll...

  • Sprint MVC 入门

    一、Spring MVC 简介 Spring MVC 框架包括 model 、view 、controll三部分组...

网友评论

      本文标题:View 跳转到controll

      本文链接:https://www.haomeiwen.com/subject/kzjtwttx.html