zoukankan      html  css  js  c++  java
  • ios ViewController 页面跳转

    从一个Controller跳转到另一个Controller时,一般有以下2种: 
    1、利用UINavigationController,调用pushViewController,进行跳转;这种采用压栈和出栈的方式,进行Controller的管理。调用popViewControllerAnimated方法可以返回。 

        PickImageViewController *ickImageViewController = [[PickImageViewController alloc] init]; 
        [self.navigationController pushViewController: ickImageViewController animated:true]; 
        [ickImageViewController release]; 


    2、利用UIViewController自身的presentModalViewController,进行跳转;调用dismissModalViewControllerAnimated方法可以返回。 
        PickImageViewController *ickImageViewController = [[PickImageViewController alloc] init]; 
        [self presentModalViewController:ickImageViewController animated:YES]; 
    //返回 
    [self dismissModalViewControllerAnimated:YES];

    from:http://longquan.iteye.com/blog/1666292

  • 相关阅读:
    写优先
    生产者消费者信号量的个人理解
    向上过滤
    操作系统之进程调度算法笔记
    idea学习
    计算机网络之网络层
    rest-framework routers
    rest framework ViewSet
    rest framework Genericview
    rest framework Views
  • 原文地址:https://www.cnblogs.com/xuan52rock/p/4975102.html
Copyright © 2011-2022 走看看