UIButton多行title
来源:互联网 发布:微软 azure认证 知乎 编辑:程序博客网 时间:2024/05/21 05:38
参考此处:http://stackoverflow.com/questions/604632/how-do-you-add-multi-line-text-to-a-uibutton
iOS6和iOS6以上:
button.titleLabel.lineBreakMode = NSLineBreakByWordWrapping;button.titleLabel.textAlignment = NSTextAlignmentCenter; [button setTitle: @"Line1\nLine2" forState: UIControlStateNormal];
button.titleLabel.lineBreakMode = UILineBreakModeWordWrap;button.titleLabel.textAlignment = UITextAlignmentCenter;[button setTitle: @"Line1\nLine2" forState: UIControlStateNormal];
0 0
- UIButton多行title
- UIButton的title设置
- UIButton 设置title位置
- UIButton的title设置
- UIButton title换行
- uibutton enable 设置title
- UIButton title换行
- UIButton titlelabel title 左对齐
- UIButton的title位置问题
- UIBUtton title image 不能同时显示
- 给UIButton添加title和image
- 设置UIButton中title的位置
- 如何设置UIButton中title的位置
- Set UIButton title label font size
- IOS开发 设置UIButton的title
- IOS 开发之设置UIButton的title
- 自定义uibutton 如何去除原有title
- UIButton 的 image 和title 位置设置
- 使用 Python 的 jsonschema 对 json 做验证
- ECharts,发现数据可视化之美!
- android PorterDuffXfermode ,PorterDuff.Mode 使用 以及Porter-Duff规则详解
- deep_c++::多态,虚函数的一点理解
- qt主界面和右键菜单
- UIButton多行title
- android 开发中通过JNI无法向SD卡写入文件的解决办法
- JAVA学习之 浅析Filter
- OpenStack OVS GRE/VXLAN网络
- 常成员函数:Const类限定的成员函数
- os上的hadoop执行环境及eclipse嵌入hadoop开发环境配置记录
- 跳台阶问题
- js面向对象编程之静态方法与实例方法
- MyEclipse 快捷键