Hey Everyone!
I'm using the Xcode 4.2 and I have some problems to make an app that have an UINavigationController.
I'm doing this way:
1 - create a new project Single View Application
2 - New File... (UIViewController subclass)
3 - In this new file, I delete the view, add a window and UINavigation Controller
4 - link File owner's view to Window and window's root view controller to UINavigationController
5 - set UINavigationController's UIViewController Class and Nib name to my Login Class (another UIView)
6 - in appDelegate.m I change the code to this:
Code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.viewController = [[NavigationBase alloc] initWithNibName:@"NavigationBase" bundle:nil];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
The problem: The UINavigationController appear and the LoginViewController's button works, but the TextFields on the LoginViewController don't work, don't appear the keyboard.
What am I doing wrong?
thanks