UIButton : Multiline text

我们两清 提交于 2019-12-23 05:28:05

问题


What would be the best way to implement a multiline text on a UIButton for iPhone SDK 3.2?

Thanks! Nicolas.


回答1:


If adding newline characters (\n) to your title text doesn't work, you could try adding a UILabel with an appropriate numberOfLines as a subview of the button.



来源:https://stackoverflow.com/questions/3239793/uibutton-multiline-text

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!