开发者

Uitableview cell text got hidden on edit Button

开发者 https://www.devze.com 2023-03-17 22:04 出处:网络
开发者_StackOverflow中文版When i try to delete any row - while clicking the edit button - the delete button appears and the text on right side truncated from the end.

开发者_StackOverflow中文版When i try to delete any row - while clicking the edit button - the delete button appears and the text on right side truncated from the end.

I want to compress it automatically while delete button appears.


You can try setting the textLabel property attributes to automatically truncate the middle of the string or set a smaller (minimum) font.

[[theCell textLabel] setMinimumFontSize:theSizeYouWant];

or

[[theCell textLabel] setLineBreakMode:UILineBreakModeMiddleTruncation];
0

精彩评论

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