title: UITextField not working inside a UITabBarController with IOS5
body: <p>Are there any restrictions on a <code>UITextField</code> when placed inside a tabview which not the main interface. In other words</p>
  
  <p>Working fine scenario
  1. A tab based application, with one of the view having a <code>UITextField</code>.
  2. The tabview is the main interface for the application.</p>
  
  <p>This works fine without any glitches</p>
  
  <p>Not-working so fine scenario.
  1. A tab based application, but the tab view is not the mainview.
  2. There is another view <code>MainWindow.xib</code> with some intro animation, which then calls and shows the tabview.
  3. <code>UITextfield</code> in such tabviews does'nt seem to work - especially in IOS5. Both methods work fine till IOS 4.3
  4. The textfield is visible, but tapping it does not show any keyboard, if i call <code>becomeFirstResponder</code> via code, the keyboard is shown but is not responsive.</p>
  
  <p>Any suggestions</p>
  
  <p>The code is pretty standard</p>
  
  <p>in the <code>AppDelegate</code></p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
  
      tabViewController = [[tabView alloc] initWithNibName:@"tabView" bundle:nil];
      [self.window addSubview:tabViewController.view];     
       //self.window.rootViewController=tabViewController
      [self.window makeKeyAndVisible];    
      return YES;    
  }
  </code></pre>
  
  <p>tabViewController has a <code>ProfileViewController</code> with a simple textfield. </p>
  
  <p>The textfield works fine if i do this</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
  
  tabViewController = [[tabView alloc] initWithNibName:@"tabView" bundle:nil];
  profileView=[[Profile alloc] initWithNibName:@"Profile" bundle:nil];
  //calling the view directly without using a tab view
  [self.window addSubview:profileView.view];     
  [self.window makeKeyAndVisible];    
  return YES;    
  </code></pre>
  
  <p>}</p>
  
  <p>Is there something else that needs to be done for IOS5 when the tab view is not the main interface? I have been cracking my head at this for a few days, all my apps with a <code>UITextfield</code>  inside a tabview are not usable in ios5. Any help is highly appreciated</p>
  
  <p>Edit: Uploaded the project file <a href="http://www.mediafire.com/?xjuc4udlph78saj" rel="nofollow">http://www.mediafire.com/?xjuc4udlph78saj</a> - XCode 4.2 on Lion</p>
  
  <p>It is a simple project with two options, Creating a tabbarcontroller from the delegate itself, and i also have a view(tabView) with a tabbarcontroller. There are 2 views for the tabbar <code>FirstViewController</code> &amp; <code>SecondViewController</code>. 
  In the <code>AppDelegate.m</code> if using method 1(create <code>UITabBarController</code> inside <code>AppDelegate</code>, all is well). If i choose to add a subview of tabView, the uitextfield does not work.
  I have not really handled the releasing of objects, since this is test project and it is only for proof of concept.</p>
  
  <p>Thanks</p>