objective c - iPhone, how can I add a first view, show once, to a mainWindow but not have a tab bar button? -
i need have view shows first before other views doesn't have tab bar button.
is there way ?
edit: don't want show modally want use standard function show other views , having cater different ways of showing view messy.
you add tabbarcontroller in window once need , remove view it's superview discard , free memory.
something like:
- (void)applicationdidfinishlaunching:(uiapplication *)application { [window addsubview:viewcontroller.view]; [window makekeyandvisible]; } - (void)showtabbarcontroller { [window addsubview:tabbarcontroller.view]; [viewcontroller.view removefromsuperview]; self.viewcontroller = nil; }
Comments
Post a Comment