store the image with name icon-1x.png, icon-2x.png and icon-3x.png in image set.then try with like this loop,
for (int i = 1; i <= 3; i++) {
NSString *imgName = [NSString stringWithFormat:@"icon-%dx.png", i];
UIImage *img = [UIImage imageNamed:imgName];
NSData *pngData = UIImagePNGRepresentation(img); // Convert it in to PNG data
}
otherwise you can get from tag of the imageView. then pass that tag value like this:
NSString *imgName = [NSString stringWithFormat:@"icon-%dx.png", imageView.tag];
UIImage *img = [UIImage imageNamed:imgName];
NSData *pngData = UIImagePNGRepresentation(img); // Convert it in to PNG data