Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chamele0n

macrumors newbie
Original poster
Aug 7, 2011
1
0
Hi all,
i was just wondering how to automatically detect a picture's height and width.

Code:
[scrollView setContentSize:CGSizeMake(image.size.width, image.size.height)];

Obviously, what i have here doesn't work. Once i push a new View, the image could be any size, and i dont want to hardcode a large scrollView size if it's not needed.

thanks very much in advance
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.