zoukankan      html  css  js  c++  java
  • UINavigation push 于 present到另一个页面详解

    如果页面中没有导航栏,可以present到这个A页面,在A页面想要跳转到有个有导航栏的页面就需要添加给B页面添加一个UINavigationController 然后present到B页面,代码如下 

     ChatViewController *cvc = [[ChatViewController alloc]init];

      UINavigationController *navi=[[UINavigationController alloc] initWithRootViewController:cvc];

      [self presentViewController:navi animated:YES completion:nil];

    还有一种方法是push到该页面把导航栏给隐藏 在A页面将要出来的时候,self.navigationgBar.hidden = YES;

    页面跳转之前self.navigationgBar.hidden = NO;push跳转

  • 相关阅读:
    2013年 积木大赛
    Matlab 画图2
    Matlab 画图1
    Matlab 数值计算
    Matlab 条件循环函数
    Non Super Boring Substring 题解(hash+思维)
    Matlab 数组
    Matlab 矩阵
    L
    hdu 1671Phone List
  • 原文地址:https://www.cnblogs.com/qiutangfengmian/p/5390211.html
Copyright © 2011-2022 走看看