I have an application containing a tab bar view and I have a login xib(login.xib) and its corresponding class files(LoginController) in the same application. I want that when my application launches, the login file should be loaded first and then once I click on the login button, my TabBar View should be launched.
Tried a lot many ways, but nothing worked. 🙁
Latest one is I tried putting the following code in the AppDelegate file at the end of application didFinishLaunchingWithOptions but facing an error:
loginController = [[LoginController alloc] init];
[window addSubview:tabcontroller.view];
[window addSubview:loginController.view];
[window makeKeyAndVisible];
return YES;
Error is “loginController” is undeclared.
Am I missing something. Please let me know if there are any other ways through which I can fulfill my requirement.
Also, on clickButton() inside the login, I am using event Touch Up Inside.
Add following line when you have finished your login checks.
Also, please check where the loginCont is used?
Thanks,