UIKIT_STATIC_INLINE UIEdgeInsets UIEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom,CGFloat right) {
UIEdgeInsets insets = {top, left, bottom, right};
return insets;
}
表示
这个表示title往右边偏移10像素,往上面偏移18像素。
第一个参数top如果为正表示往下偏移,第二个参数left如果为正表示往右偏远,第三个参数bottom如果为正表示往上偏移,第四个参数right如果为正表示往左偏移。