iphone - App just shows a black screen -
i'm trying make multiview application. started creating 'empty application' thought easiest. have 3 .xib files, first being mainview.xib has view controller linked switch class, , has tool bar switch between 2 views, , have selected .xib 'main interface' thought meant should loaded first. other blue redview.xib , blueview.xib.
i've heard method in appdelegate.m can cause problems, here mine...
- (void)applicationdidfinishlaunching:(uiapplication *)application { //add switchclasses view main window [window addsubview:switchobject.view]; [window makekeyandvisible]; }
i don't know whether have missed because started empty application, or if i've messed along way.
thank help.
do this:
window.rootviewcontroller = switchobject;
Comments
Post a Comment