【发布时间】:2011-06-02 08:34:56
【问题描述】:
我在 Interface Builder 中内置了一个具有默认标签的 UIButton。在 Xcode 中,我正在动态更改标签文本,如下所示:
myButton.titleLabel.text = @"this is the new label";
但是,当文本更新时,新字符串被剪裁到与原始字符串相同的大小,最终看起来像:
this...label
有人知道为什么会这样吗?
【问题讨论】:
标签: iphone cocoa-touch uibutton