Hi all, I need to load a part of an image into a uiimageview... for example an image that is 100x100, only display 100x50... thanks
+2
A:
I'm not sure if i fully understand your intentions on that, but as far as I'm concerned, partly loading an image would probably be a lot more difficult then just loading the whole image into your imageview and setting its frame accordingly.
samsam
2010-07-09 08:21:37
thanks samsam... and how can I do this thing??
ghiboz
2010-07-09 08:38:30
+2
A:
samsam is telling this
uiimageview.image = [UIImage imageNamed:@"myImage.png"];
uiimageview.frame = CGRectMake(x,y,100,50);
uiimageview.contentMode = UIViewContentModeTopLeft;
Sanniv
2010-07-09 09:02:50