用一個lynaviViewController繼承navigation,在app delegate中初始化lynaviViewController,然後self.window.rootViewController = lyNaviViewController; 要跳轉頁面時用lynaviViewController,程式碼片段:lyNaviViewController = [[LYNaviViewController alloc] init]; self.window.rootViewController = lyNaviViewController; [lyNaviViewController setNavigationBarHidden:true]; HLMainViewController* hlMain = [[HLMainViewController alloc] init]; [hlMain initContentViews];[lyNaviViewController pushViewController:hlMain animated:false];
用一個lynaviViewController繼承navigation,在app delegate中初始化lynaviViewController,然後self.window.rootViewController = lyNaviViewController; 要跳轉頁面時用lynaviViewController,程式碼片段:lyNaviViewController = [[LYNaviViewController alloc] init]; self.window.rootViewController = lyNaviViewController; [lyNaviViewController setNavigationBarHidden:true]; HLMainViewController* hlMain = [[HLMainViewController alloc] init]; [hlMain initContentViews];[lyNaviViewController pushViewController:hlMain animated:false];