1:實(shí)現(xiàn)過(guò)程
當(dāng)程序模態(tài)跳轉(zhuǎn)的時(shí)候九火,需要對(duì)跳轉(zhuǎn)的控制器手動(dòng)包裝一個(gè)navigationcontroller
2:上代碼
AllTicketDataViewController * allTicketVC = [[AllTicketDataViewController alloc] init];
// 包裝一個(gè)導(dǎo)航欄控制器
YSNavigatViewController * nav = [[YSNavigatViewController alloc]? initWithRootViewController:allTicketVC];
[self presentViewController:nav animated:YES completion:nil];