テーブルビューにボタンを追加しようとしていますが、どのフレームを指定してもボタンが表示されません。これはカスタム UITableViewCell であり、ボタンをクリックして didSelectRowAtIndexPath ではないアクションを実行できるように、xib ファイルではなくコードにボタンを追加しています: cellForRowAtIndexPath に次のコードがあります: ?
UIButton *button = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
button.frame = bframe;
button.userInteractionEnabled = YES;
[button addTarget:self action:@selector(buttonClick:) forControlEvents:UIControlEventTouchUpInside];
[cell.contentView addSubview:button];
return cell;