views:

119

answers:

1

I have created my own UITableViewCell with XIB file. There's an UITextView inside. However, I don't know how to access its features and use its outlets with the UIViewController. What's the way to do it?

alt text

+1  A: 

You can access it by pulling the subview out of the cell's subviews array and casting it to UITextView:

How you created your view hierarchy will determine the index to pass to objectAtIndex.

UITextView *textView = (UITextView*) [cell.subviews objectAtIndex:whateverIndex];

Jacob Relkin