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

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