In your PostTableViewCell.h define a delegate
@protocol HandleCellInteractionDelegate <NSObject>
-(void) didPressButton:(NSString*)action forCell:(UITableViewCell *)theCell;
@end
In TableView.h, register as a delegate for this protocol.
<HandleCellInteractionDelegate>
In the tableview.m file add a delegate handler
- (UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath{
....
cell.delegate = self;
if (self.qObjects current object selection state == selected)
enable button
else
disable button
}
#pragma mark HandleCellInteractionDelegate
-(void) didPressButton:(NSString*)action forCell:(UITableViewCell *)theCell{
cell.questionTextView.text = @"bla bla";
}