【发布时间】:2013-05-19 03:57:08
【问题描述】:
在我的应用程序中,我尝试使用该功能 [self.navigationCotroller presentModalViewController:nextVC Animation:YES]; 但是,当它进入下一个视图时,子视图会占据整个屏幕(当然是这样) 问题是,我如何添加引导视图返回的条形按钮?
我尝试过使用
-
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"back" style:UIBarButtonItemStyleDone target:self action:@selector(Go)];在函数viewdidLoad中,但没有工作,没有显示栏甚至按钮
UINavigationBar *bb = [[UINavigationBar alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 44)]; self.NVBar = bb; [self.view addSubview:bb];
但是,我不知道如何将 barbutton 添加到新的 navigationBar ---NVBar
你愿意给我一个解决方案吗?
【问题讨论】: