UIButton上的图片和文字位置调整
2015-06-24 14:37
387 查看
UIButton上的图片和文字位置调整:
属性: imageEdgeInsets
contentEdgeInsets
UIEdgeInsetsMake
Creates an edge inset for a button or view.
UIEdgeInsets UIEdgeInsetsMake (
CGFloat top,
CGFloat left,
CGFloat bottom,
CGFloat right
);
Parameters
top
The inset at the top of an object. 距离顶部的间隔
left
The inset on the left of an object 距离左边的间隔
bottom
The inset on the bottom of an object. 距离底部的间隔
right
The inset on the right of an object. 距离右边的间隔
属性: imageEdgeInsets
contentEdgeInsets
UIEdgeInsetsMake
Creates an edge inset for a button or view.
UIEdgeInsets UIEdgeInsetsMake (
CGFloat top,
CGFloat left,
CGFloat bottom,
CGFloat right
);
Parameters
top
The inset at the top of an object. 距离顶部的间隔
left
The inset on the left of an object 距离左边的间隔
bottom
The inset on the bottom of an object. 距离底部的间隔
right
The inset on the right of an object. 距离右边的间隔
相关文章推荐
- AIX下exp的query写法
- UIView的setNeedsLayout, layoutIfNeeded 和 layoutSubviews 方法之间的关系解释
- UIFont 字体与字体的列表
- UITouch的用法
- iOS 9: UIStackView入门
- XCUIElementTypeQueryProvider API
- UIView常用的一些方法小记之setNeedsDisplay和setNeedsLayout
- POJ 3709 K-Anonymous Sequence
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- Hive Hue的导出XLS格式,数据不全
- iOS三种视图切换 (UITabBarController,UINavigationController,模态窗口)
- Direct UI 思想阐述
- requireJS官网学习(1)
- UICollectionViewController简单操作
- Convert boolean values to strings 'Yes' or 'No'.
- suid位,sgid位及setuid(),setgid()函数实测情况
- XCUIElementType API
- UITableView的上下滑动与自己添加的手势冲突
- poj2778 DNA Sequence(AC自动机+矩阵快速幂 )
- 比较height(),innerHeight(),outerHeight()和outerHeight(true)