storyboard之间的切换有三种方法:[self presentViewController:viewControllerToPresentanimated:YES completion:nil];[self.navigationController pushViewController:vie...
分类:
移动开发 时间:
2014-09-29 11:08:47
阅读次数:
181
一般控制器有延迟是应该我们控制器的视图view是栏加载的,等我们用到的时候才会加载,所有我们在利用UINavigationCongtroller,的这个方法[self.navigationController pushViewController:controller animated:YES];跳...
分类:
移动开发 时间:
2014-09-12 19:03:03
阅读次数:
438
从一个Controller跳转到另一个Controller时,一般有以下2种:1、利用UINavigationController,调用pushViewController,进行跳转;这种采用压栈和出栈的方式,进行Controller的管理。调用popViewControllerAnimated方法...
分类:
移动开发 时间:
2014-08-19 18:29:45
阅读次数:
471
iOS页面跳转:
第一种
[self.navigationController pushViewController:subTableViewController animated:YES];
//描述:通过 NSNavigationBar 进行跳转
[self.navigationController popViewControllerAnimated:Y...
分类:
移动开发 时间:
2014-08-14 16:50:18
阅读次数:
227
先看一下效果图:
用如下代码,想弹出一个模态窗口,设置它的背景透明度为0.5,却发觉prsent后的背景色变为黑色的。
ShareVC *share = [[ShareVC alloc] init];
[self presentViewController:share animated:YES completion:nil];
起初还以为是设置透明度或者是[UIColor clear...
分类:
其他好文 时间:
2014-08-05 22:41:00
阅读次数:
339
第一种方式: MyViewController *my=[[MyViewController alloc] init]; [self.navigationController pushViewController:my animated:NO]; //因为一个事件循环机制中 ...
分类:
其他好文 时间:
2014-08-01 13:12:01
阅读次数:
142
1.Modal:打开:presentViewController关闭:dismissViewController2.Push:需搭配NavigationController使用,采用压栈和出栈的方式打开:pushViewController关闭:popViewController3.Segue:以上...
分类:
其他好文 时间:
2014-06-27 13:57:24
阅读次数:
161
我们一般切换UIViewController的时候用的是如下代码
#import "UIViewControllerDemo.h"
UIViewControllerDemo *vc = [UIViewControllerDemo alloc] initWithNibName:nil bundle:nil] autorelease];
[self.navigationController pushViewController:vc animated:YES];...
分类:
其他好文 时间:
2014-04-27 21:21:00
阅读次数:
294