开发者

Need to resize the Delete button when row is swiped

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  ";
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜