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?
+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
2010-06-14 17:56:11