请求图片时容易出现此错误
UIButton *avatarButton = [UIButton buttonWithType:UIButtonTypeCustom];
[avatarButton setImageWithURL:[NSString stringWithFormat:@”http:xxx.png”]];//错误
[avatarButton setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@”http:xxx.png”]]];//正确
请求图片错误
最新推荐文章于 2023-06-29 23:38:06 发布