网络获取图片高度和宽度

来源:互联网 发布:南风知我意琰阙 编辑:程序博客网 时间:2024/05/23 15:37
       [[SDWebImageDownloader sharedDownloader]downloadImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@!375x235",ImageRequest,model.titlepic]] options:SDWebImageDownloaderUseNSURLCache progress:^(NSInteger receivedSize, NSInteger expectedSize) {    } completed:^(UIImage *image, NSData *data, NSError *error, BOOL finished) {        //这边就能拿到图片了        NSLog(@"imgh = %f,%f",image.size.height,image.size.width);    }];