ios 实现导航控制器带动画的推送页面
2013-02-07 14:55
585 查看
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.backgroundColor=[UIColor grayColor];
self.navigationController.navigationItem.title=@"A";
self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(back1)];
}
-(void)back1{
B *b=[[B alloc]init];
b.view.backgroundColor=[UIColor redColor];
UINavigationController *navi=[[UINavigationController alloc]initWithRootViewController:b];
navi.viewControllers=[NSArray arrayWithObjects:b, nil];
[b release];
navi.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:navi animated:YES];
[navi release];
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.navigationController.navigationItem.title=@"B";
self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(back)];
}
-(void)back{
[self dismissModalViewControllerAnimated:YES];
}
{
[super viewDidLoad];
self.view.backgroundColor=[UIColor grayColor];
self.navigationController.navigationItem.title=@"A";
self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(back1)];
}
-(void)back1{
B *b=[[B alloc]init];
b.view.backgroundColor=[UIColor redColor];
UINavigationController *navi=[[UINavigationController alloc]initWithRootViewController:b];
navi.viewControllers=[NSArray arrayWithObjects:b, nil];
[b release];
navi.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:navi animated:YES];
[navi release];
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.navigationController.navigationItem.title=@"B";
self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(back)];
}
-(void)back{
[self dismissModalViewControllerAnimated:YES];
}
相关文章推荐
- 【iOS开发-24】导航控制器下不同视图控制器之间切换:利用CATrasition和view的layer层来实现自定义的动画效果
- iOS开发导航控制器下不同视图控制器之间切换:利用CATrasition和view的layer层来实现自定义的动画效果
- 【iOS开发-26】利用协议代理实现导航控制器UINavigationController视图之间的正向传值和反向传值
- iOS学习应用开发就业课:第7章_060:导航控制器动画
- iOS实现先无动画pop再push,替换当前控制器
- iOS导航控制器动画使用
- iOS_20_微博自己定义可动画切换的导航控制器
- Github系列之二:开源 一行代码实现多形式多动画的推送小红点WZLBadge(iOS)
- iOS开发>学无止境 - 自定义控制器转场动画及实现下拉菜单的小Demo
- 在没有导航控制器的情况下,如何实现页面的跳转
- iOS:导航控制器侧滑出栈实现
- iOS页面切换动画实现方式。
- 猫猫学iOS 之微博项目实战(6)导航控制器NavigationController 的滑动回退功能实现
- iOS开发使用Tab Bar Controller实现页面导航功能
- (有码)Block模式实现导航控制器页面传值
- iOS-runtime-根据类名推送到任意控制器,且实现属性传值
- iOS-非父子控制器跳转(如:从某一导航控制器的子页面跳转到另一个tabbar控制的页面)
- iOS 视图控制器转场动画/页面切换效果/跳转动画 学习
- iOS_20_微博自定义可动画切换的导航控制器
- iOS实现超酷页面切换动画特效