开发者

Need to resize the Delete button when row is swiped

开发者 https://www.devze.com 2023-02-06 01:57 出处:网络
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

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

精彩评论

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