I am doing like following to determine the size of the downloaded image during the block and then i will set the size of the uiimageview accordingly.

self.headerView is an outlet connection to uiimageview in the xib

```
  __weak  UIImageView *weakObj    =   self.headerView;

    [self.headerView setImageWithURLRequest:[NSMutableURLRequest requestWithURL:[NSURL URLWithString:fundraiserInfo.imageUrl]]
                           placeholderImage:nil
                                    success:^(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image) {
                                        NSLog(@"image is %@",NSStringFromCGSize(image.size));

                                        CGRect newFrame ;
                                        newFrame                    =   weakObj.frame;
                                        newFrame.size.width         =   image.size.width;
                                        newFrame.size.height        =   image.size.height;
                                        weakObj.frame               =   newFrame;

                                    }
                                    failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error) {
                                        ;
                                    }
     ];

```

However, when running the app on the simulator (Device-Iphone), iam getting

```
image is {300, 222}

```

However, If I am using simulator (Retina 3.5) or (Retina 4) or I install the app on iphone4 or iphone 5, I am getting :

```
image is {150, 111}

```

Why it happens like that.