IOS OC button 中有图片有文字,设置图片大小

 [Btn  sd_setImageWithURL:imageURL forState:UIControlStateNormal completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {

            if (image) {

                Btn.imageEdgeInsets = UIEdgeInsetsMake(8, 8, 8, 300);

            }

        }];

© 版权声明
THE END
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容