通过navigationController切换view的两种方式

方法一右侧进入

 

BaseInfoEdit *View = [[BaseInfoEdit allocinitWithNibName:@"BaseInfo" bundle:nil];

[self.navigationController pushViewController:View animated:YES];

返回方法

[self.navigationController popViewControllerAnimated:YES];

 

方法二下方进入

 OilRecordAdd *View = [[OilRecordAdd allocinitWithNibName:@"OilRecordDetail" bundle:nil];

[self.navigationController presentModalViewController:Nav animated:YES];

返回方法

[self.navigationController dismissModalViewControllerAnimated:YES];

posted @ 2012-04-02 12:12  FoxBabe  阅读(264)  评论(0编辑  收藏  举报