I have a UITableView that when I swipe the row, the Delete button appears. The problem is that the Delete button is not wide enough to hide a piec开发者_StackOverflowe of data behind it, which makes it look amateurish.
How can I fix this (widen the button)?
You can change the name of the button and add spaces in there.
-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath{
return @" Delete ";
}
精彩评论