Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我记得在 Apple 的文档中读过这个,但现在我找不到了。我的 TableView 行在右侧被截断,但我想同时显示文本的开头和结尾。如何截断(添加省略号)中间的文本?
myCell.textLabel.lineBreakMode = UILineBreakModeMiddleTruncation;