UIEdgeInsets

来源:互联网 发布:软件测试自学教程视频 编辑:程序博客网 时间:2024/06/05 05:31

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.

Return Value

An inset for a button or view


for examle:

 self.myTableview.contentInset =UIEdgeInsetsMake(100,0, 0,0);


0 0