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

2025-02-06  本文已影响0人  师景福

 [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);

            }

        }];

上一篇 下一篇

猜你喜欢

热点阅读