2016-08-27 4 views
3

내 루트보기는 탭 표시 줄 컨트롤러입니다. 특정 알림을 받으면 특정 탭에서 응용 프로그램을 열고 싶습니다. presentViewController를 사용하면 탭 막대가 사라집니다. 이 작업을 수행 할 수있는 구체적인 방법이 있습니까?AppDelegate에서 특정 탭보기를 열 수있는 방법

답변

4
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 
    let myTabBar = self.window.rootViewController as! UITabBarController // Getting Tab Bar 
    myTabBar.selectedIndex = 2 //Selecting tab here 
    return true 
} 
+0

감사합니다. –

관련 문제