我有一个包含一些UILabel的UITableViewCell,我希望这个标签水平填充UITableViewCell的宽度,而不是留出很大的空间,这是一个示例:
|---------------------------------------------------------
| |
|***This is a uilabel***This is a uilabel***label***lb** |
|
我有一个UIScrollView,它由UILabels填充,在每个页面上都由NSTimers更新,每个页面都被NSDictionary填充。
for (id key in _infoDict) {
NSTimer *releaseDateTimer = [NSTimer scheduledTimerWithTimeInterval: 1.0 target: self
selector: @selector(calculateReleaseDate:) u
如果您有一个带有UILabel的numberOfLines,设置一些>1的东西,然后尝试折叠:
UILabel *lbl;
lbl.text = "line1\nline2"; // works and displays 2 lines
line1
line2
lbl.text = "\nline2"; // works in iOS 6 and shows an empty line and a second line with line2
在iOS 7中没有显示任何内容。
在iOS6下,您可以得到:>>
line2 (带有空的