Monday, January 4, 2010

Placement of an image

UIImage *img = [UIImage imageNamed:@"image.png"];
CGRect imageframe = CGRectMake(0, 0, 1, 320); // size of the image
UIImageView *imageView = [[UIImageView alloc] initWithFrame:imageframe];
imageView.image = img;

No comments:

Post a Comment