首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

UIButton上的图片、文字位置整合

2012-07-25 
UIButton上的图片、文字位置调整UIButton上的图片和文字位置调整:  属性: imageEdgeInsets      contentEdg

UIButton上的图片、文字位置调整
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.     距离右边的间隔

  

热点排行