OC-UIButton设置图标并旋转缩放图标

    btn.imageView.transform = CGAffineTransformMakeRotation(M_PI*0.5);
    btn.imageView.contentMode = UIViewContentModeScaleAspectFit;
    [btn setImageEdgeInsets:UIEdgeInsetsMake(0, 100, 0, 0)];
    [btn setTitleEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 25)];

你可能感兴趣的:(OC-UIButton设置图标并旋转缩放图标)