设置uibutton 中文字大小和位置
来源:互联网 发布:mysql 连接指定数据库 编辑:程序博客网 时间:2024/05/20 03:42
UIButton* button=[UIButtonbuttonWithType:UIButtonTypeCustom];
button.frame=CGRectMake(5, 8, 50, 29);
[buttonsetBackgroundColor:[UIColorclearColor]];
[buttonsetBackgroundImage:[UIImageimageNamed:@"button_back.png"]forState:UIControlStateNormal];
[buttonsetBackgroundImage:[UIImageimageNamed:@"button_back_2.png"]forState:UIControlStateHighlighted];
[buttonsetTitle:@"返回"forState:UIControlStateNormal];
button.titleEdgeInsets =UIEdgeInsetsMake(1,5, 0, 0); // 4个参数分别是距离上,左,下,右的数据
button.titleLabel.font=[UIFontfontWithName:@"Helvetica-Bold"size:14];
0 0
- 设置uibutton 中文字大小和位置
- UIButton中显示的图片和标题位置的设置
- UIButton中显示的图片和标题位置的设置
- 设置UIButton中titleLabel和ImageView的位置
- 设置UIButton中title的位置
- 如何设置UIButton中title的位置
- iOS开发-UIButton中title位置设置
- UIButton 的 image 和title 位置设置
- UIButton设置textlabel和image位置
- UIButton 设置title位置
- iOS 设置Label中特定的文字大小和颜色
- QLabel设置文字大小和颜色
- QLabel设置文字大小和颜色
- QLabel设置文字大小和颜色
- QLabel设置文字大小和颜色
- UIButton中图片与文字的位置设置
- UIButton中设置图片与标题位置的解决方案
- UIButton通过UIEdgeInsetsMake设置image和title的位置
- UVA 10194 - Football (aka Soccer)
- 《剑指Offer》面试题-用两个栈实现队列
- 第一个Delphi程序(Hello World)
- artDialog.js
- 浅析人脸检测之Haar分类器方法
- 设置uibutton 中文字大小和位置
- between dom sax or stax
- Solaris搭建64位C语言开发环境
- 电脑硬件基础知识
- IOS-录音功能
- jbpm插件安装
- windows下taskkill命令简介
- 频率复用因子
- NYOJ 219 An problem about date