iOSbutton修改成上图下字

- (void)changeEdgeInset:(UIButton *)sender {
    [sender setImageEdgeInsets:UIEdgeInsetsMake(-sender.titleLabel.intrinsicContentSize.height - 20, 0, 0, -sender.titleLabel.intrinsicContentSize.width)];
    [sender setTitleEdgeInsets:UIEdgeInsetsMake(sender.currentImage.size.height, -sender.currentImage.size.width, 0, 0)];
}

你可能感兴趣的:(iOSbutton修改成上图下字)