-1
我想讓我的按鈕是完全相同的寬度和高度作爲我的自定義uitableviewcell。如何讓uibutton完全相同的寬度和高度的自定義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;
}
不過這是結果我得到....
這是如何'cellSubmit'創建? – 2011-06-02 04:26:20