调整Title字体位置
[button setTitleEdgeInsets:UIEdgeInsetsMake(10, 0, 0, 0)];
四个參数分别代表:上边界,左边界。下边界,右边界
改动UIButton setTitle字体颜色
[button addTarget:self action:@selector(clickAction) forControlEvents:UIControlEventTouchUpInside];
调整Title字体位置
[button setTitleEdgeInsets:UIEdgeInsetsMake(10, 0, 0, 0)];
四个參数分别代表:上边界,左边界。下边界,右边界
改动UIButton setTitle字体颜色
[button addTarget:self action:@selector(clickAction) forControlEvents:UIControlEventTouchUpInside];