Loading UINavigationController from another nib automatically by UITabBarController

后端 未结 5 772
無奈伤痛
無奈伤痛 2021-02-06 16:57

I think I\'ve found the cause: Document Info window in IB has a warning: \"\'Selected Navigation Controller (Second)\' has nib name property set to \'SecondView.nib\', but t

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 17:32

    I believe you are looking for something like this. You would replace "whatever" with the name of you second nib file.

    newNavController = [[UINavigationController alloc] initWithNibName:@"whatever" bundle:[NSBundle mainBundle]];
    

提交回复
热议问题