![](/img/trans.png)
[英]UINavigationController, and TabBarController programmatically (no storyboards)
[英]Embedded UINavigationController Storyboards Issue
我試圖使用帶有故事板的UIViewController嵌入UINavigationController。
我試圖將RecordViewController“推”到PublishViewController。 這似乎根本不起作用。 它正在“模態化”切換。
帶有嵌入式UINavigationController的PublishViewController => UIViewController。
RecordViewController => UIViewController。
我究竟做錯了什么?
故事板圖片: http : //cl.ly/image/0R27072Y2X08
切換視圖Segue代碼:
#pragma mark - Navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if([segue.identifier isEqualToString:@"pushToPublish"]) {
PublishViewController *vc = [segue destinationViewController];
}
}
您應該具有以下內容:
Record View Controller應該嵌入在導航控制器中,Record VC和Publish VC之間的順序應該定義為推送順序,而不是模態。 請注意,推送序列的象形圖是所附圖像中“記錄”和“發布”之間的象形圖。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.