iphone - Add login screen infront of TabBar in IOS -
i have application containing tab bar view , have login xib(login.xib) , corresponding class files(logincontroller) in same application. want when application launches, login file should loaded first , once click on login button, tabbar view should launched.
tried lot many ways, nothing worked. :(
latest 1 tried putting following code in appdelegate file @ end of application didfinishlaunchingwithoptions facing error:
logincontroller = [[logincontroller alloc] init]; [window addsubview:tabcontroller.view]; [window addsubview:logincontroller.view]; [window makekeyandvisible]; return yes; error "logincontroller" undeclared.
am missing something. please let me know if there other ways through can fulfill requirement.
also, on clickbutton() inside login, using event touch inside.
logincontroller = [[logincontroller alloc] initwithnibname:@"login" bundle:nil]; [window addsubview:logincontroller.view]; [window makekeyandvisible]; add following line when have finished login checks.
[window addsubview:tabcontroller.view]; also, please check logincont used?
thanks,
Comments
Post a Comment