iOS获取网络图片计算其大小

来源:互联网 发布:轮滑培训班软件 编辑:程序博客网 时间:2024/05/16 01:21

UIImage *img = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@”http://…”]]];
NSLog(@”%f,%f”,img.size.height,img.size.width);

0 0