1 Reply Latest reply: May 27, 2012 3:13 PM by -Chad-
-Chad- Level 1 (15 points)

I have a NavigationViewController that opens a UIViewController with a UITextView...

 

I tell the text view to becomeFirstResponder so when the view opens the keyboard is ready to go. However, whenever

 

[((UITextView *)self.textView) becomeFirstResponder];

 

is called the log shows...


...setting the first responder view of the table but we don't know its type (cell/header/footer)

 

I have searched and can't find anything about cells, headers, or footers in any of the documentation.

 

Does anyone know how to fix this? Thanks.


iPhone 4, iOS 5.0.1
  • -Chad- Level 1 (15 points)

    I found my error. In my example, the view shown to the NavigationViewController was declared as a subclass of UITableView per the Xib. So, even though the UI builder let me put items on the canvas under the UITableView, there was a problem giving focus to these items.

     

    Changing the top level view in the Xib from UITableView to a UIView fixed the problem.