ios - Split View Controller displayed from a tabbarcontroller -
i'm having xcode project the root view tab bar controller. first item of tab bar view controller accessed navigation controller's root view controller. second item of tab bar navigation controller root view controller splitviewcontroller. when select second item, warning message
<splitviewcontroller: 0x7fceea530640> expected have view controller @ index 0 before it's used! the view remains blank. first tab bar selection works fine. have attached project perusal. can tell me whats wrong code?
in mainwindow.xib specify nib name load dummyviewcontroller don't specify splitviewcontroller. you've told tab bar controller kind of object use (splitviewcontroller) nothing how should create child view controllers object.
this results in splitviewcontroller no view controllers use, therefore error message.
Comments
Post a Comment