您的位置:首页 > 产品设计 > UI/UE

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];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  button bottom