Я использую customCell для моего tableView. CustomCell содержит UIButton. И я хочу назначить действие с помощью этой кнопки.
BeginingCell.h содержит склонение для кнопки UIB как:
#import <UIKit/UIKit.h>
@interface BeginingCell : UITableViewCell {
IBOutlet UIButton *ansBtn1;
}
@property(nonatomic,retain)IBOutlet UIButton *ansBtn1;
@end
И реализация:
//
// BeginingCell.m
// customCells
//
#import "BeginingCell.h"
@implementation BeginingCell
///########### Synthesize ///###########
@synthesize ansBtn1;
///########### Factory ///###########
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state.
}
///########### End Factory ///###########
- (void)dealloc {
[super dealloc];
}
@end
Я использую эту CustomCell в tableView. Я хочу получить ответ от кнопки Click. Как я могу назначить действие кнопки для моей кнопки CustomCell?