xcode - Setting inital View on a View Based Aplication -
i no how go 1 window using ibaction , and button wandering if way "application didfinishlaunchingwithoptions" bool (unchanged since created) looks this
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { // override point customization after application launch. // set view controller window's root view controller , display. self.window.rootviewcontroller = self.viewcontroller; [self.window makekeyandvisible]; return yes; } any on matter received.
after searching internet 2 hours became apparent 1 have asked such question. after 1 , half hours of solid failure have made solution. there 3 things must first must go appdelegate.h , change following
@class originalpageveiwcontroller; @interface snakeappdelegate : nsobject <uiapplicationdelegate> { uiwindow *window; originalpageveiwcontroller *viewcontroller; } @property (nonatomic, retain) iboutlet uiwindow *window; @property (nonatomic, retain) iboutlet originalpageveiwcontroller *viewcontroller; @end change @class originalpageveiwcontroller secoundpageviewcontroller , same rest of file (2 more occurences in basic file (@interface , @ property)).
then open mainwindow.xib , click on originalpageveiwcontroller icon , go onto attributes inspector(⌘1) , change nibname under viewcontroller secoundpageviewcontroller , go onto identity inspector (⌘4) , change class under class identity secoundpageviewcontroller , save changes mainwindow , build , run.
Comments
Post a Comment