CustomCell にあるボタンをクリックすると、アラートが表示されるようにしたい CustomCell があります。そのCustomCellのメソッドにアクセスする方法
@interface CustomCell : UITableViewCell {
IBOutlet UIImageView *imageViewCell;
IBOutlet UILabel *theTitle;
IBOutlet UIButton*imageButton;
}
@property(nonatomic,retain) IBOutlet UIButton*imageButton;
@property(nonatomic,retain) UIImageView *imageViewCell;
@property(nonatomic,retain) UILabel *theTitle;
-(IBAction)imageButtonAction;
@end
@implementation CustomCell
@synthesize imageViewCell;
@synthesize theTitle;
-(IBAction)imageButtonAction{
}
ここでこのメソッドを呼び出す代わりに、CustomCell を使用しているクラスでこのメソッドを呼び出す必要があります。