2016-12-04 89 views
-1

双导航栏图像 双导航栏目标C

好,我是从推观点,即不支持SEGUE,编程使用的代码:

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; 
OtherUsersProfileViewController * vc=[storyboard instantiateViewControllerWithIdentifier:@"OtherUsersProfileViewController"]; 
vc.agent_ID = self.opponentID; 
vc.agent_Name = self.title; 
[self.navigationController pushViewController:vc animated:YES]; 

而且在OtherUsersProfile即时得到双导航栏,它可能是什么?

+0

你有没有制作一个自定义的导航栏视图是故事板? – Dalvik

+0

是的,我是...... –

+0

看到我的回答可能有帮助 – Dalvik

回答

1

Image您不需要在故事板中添加新导航。

你必须选择实现这一目标:

第一种方法:使用默认导航栏

  1. 只是删除默认后退按钮并添加新的自定义导航按钮。

    Hide Back Button

    Add Custom Image in Nav Bar

方式二:删除默认的导航栏,并添加自定义导航栏通过故事板。

self.navigationController.navigationBar.hidden = YES; 
//And then your code will work fine.