I am using a customCell for my tableView.The CustomCell Contains UIButton.And i want to assign an action with this button.
BeginingCell.h holds declination for the UIButton as :
#import <UIKit/UIKit.h>
@interface BeginingCell : UITableViewCell {
IBOutlet UIButton *ansBtn1;
}
@property(nonatomic,retain)IBOutlet UIButton *ansBtn1;
@end
And the implementation is :
//
// 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
I am using this CustomCell in a tableView.I want a response from the button Click.How can i assign a button action for my customCell Button?