ボタンをカスタム uitableviewcell とまったく同じ幅と高さにしようとしています。
これが私がそれをやろうとしている方法です
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.section == 0) {
if (indexPath.row == 0) {
return cellCode;
}
if (indexPath.row == 1) {
cellManufacture.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cellManufacture;
}
if (indexPath.row == 2) {
cellModel.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cellModel;
}
if (indexPath.row == 3) {
cellYear.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cellYear;
}
}
submitButton.frame = cellSubmit.bounds; //<<<<<<HERE IS WHERE I SET SIZING :)
return cellSubmit;
}
しかし、これは私が得る結果です....