私はipadの開発では新しいですが、私はボタンをuitableviewcellに追加したいが、それは表示されません。このボタンをテーブルビューのセルに追加する方法。私はcellforRowAtIndexPathでこのコードを書いています私のコードは次のとおりです。事前にipadのuitableviewcellのボタンを追加する方法
UIButton *cellImgButton = [[UIButton alloc]initWithFrame:CGRectMake(300, 350, 40, 40)];
cellImgButton = [UIButton buttonWithType:UIButtonTypeCustom];
UIImage *buttonImage = [UIImage imageNamed:@"remove.png"];
[cellImgButton setBackgroundImage:buttonImage forState:UIControlStateNormal];
[cellImgButton addTarget:self action:@selector(cellImgButton:) forControlEvents:UIControlEventTouchUpInside];
[cell.contentView addSubview:cellImgButton];
ありがとう: