I have a custom UITableViewCell:
@interface EditingTableViewCell : UITableViewCell <UITextFieldDelegate> {
UITextField *editableText;
UILabel *textLabel;
}
And I did receive editingDidEnd message from UITextField editableText. Now how can I pass it’s message to UITableViewController which creates this cell?
Is creating ivar like this id delegate; within cell and set it to the tableViewController instance an only way?
I think i found a way to do a good job…
@protocolfor this cellEditingTableViewCellclassSo this way i can pass message to the UITableViewController that conforms that cell’s protocol. Of course you have to check that class
conformsToProtocolandrespondsToSelector. Now I can call it. Something like this: