When I click the textfield, the keyboard doesn’t show up. I’m pushing the nib with pushViewController in another view.
When I tried loading the nib with the non-working textfield as the default view for the app, it works fine. It just isn’t working when I load it from another view.
Here is the code that I load it with:
MessageComposeViewController *nextLevelListVC = [[MessageComposeViewController alloc] initWithNibName:@"MessageComposeViewController" bundle:nil];
[self.navigationController pushViewController:nextLevelListVC animated:YES];
[nextLevelListVC release];
After consulting my professor he pointed out what a possible solution was, after implementing what he suggested it fixed my issue. Posting an explanation to help people who run into this in the future.
On my part it was a stupid mistake. It had to do with me calling presentModalViewController earlier in my app. I was using it in a way that it should not be used. I was using it to direct flow from my login page. Here is a basic layout of the flow I had:
I re-wrote the navigation system to work with a flow similar to the one below:
When you present a modal view controller, you have to finish with it and dismiss it before presenting or pushing anymore views into your navigation view.
Hopefully this explanation is good enough to give people an understanding of what my problem was and how I solved it.