UIEdgeInsets
2014-06-29 01:37
246 查看
UIEdgeInsets 设置边距
UIEdgeInsets UIEdgeInsetsMake ( CGFloat top, CGFloat left, CGFloat bottom, CGFloat right);
按钮button中自带有一个label,通过设置label的边距可以自定义label在按钮中的位置:[button setTitleEdgeInsets:UIEdgeInsetsMake(0,0,0,0)];设置按钮自带的label显示在按钮的右方(右对齐)[button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight];
UIEdgeInsets UIEdgeInsetsMake ( CGFloat top, CGFloat left, CGFloat bottom, CGFloat right);
按钮button中自带有一个label,通过设置label的边距可以自定义label在按钮中的位置:[button setTitleEdgeInsets:UIEdgeInsetsMake(0,0,0,0)];设置按钮自带的label显示在按钮的右方(右对齐)[button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight];
相关文章推荐
- UIButton中的三个UIEdgeInsets属性
- 详解iOS中UIButton的三大UIEdgeInsets属性用法
- UIButton-UIEdgeInsets
- 理解UIEdgeInsets
- 修改UILabel的UIEdgeInsets
- ios 小结 scrollView 与 UIEdgeInsets
- UIButton UIEdgeInsets属性改变原有的imageview和titellabel位置,使其变成上下结构
- 关于iOS UILabel 设置 UIEdgeInsets
- UIButton中的三个UIEdgeInsets属性(一)
- UIButton中的三个UIEdgeInsets属性(二)
- UIEdgeInsets
- uiscrollview中使用UIEdgeInsets后。
- 理解UIEdgeInsets
- iOS-CGRect、CGSize、CGPoint__UIEdgeInsets 介绍
- UIButton里三个UIEdgeInsets属性
- UIButton的UIEdgeInsets功能:设置button上的文字和图片的位置
- UIImages & UIEdgeInsets
- 详解iOS中UIButton的三大UIEdgeInsets属性用法
- java.awt.Insets
- iOS - UIButton(UIEdgeInsets)/设置button上的文字和图片上下垂直居中对齐