springframework
Apr 2, 2008, 06:22 PM
I am using this code to place an image but it doesn't seem to work. The image just gets shown at 0,0
UIImage *image = [UIImage imageNamed:@"image.png"];
CGPoint imagepoint = CGPointMake(272,0);
[image drawAtPoint:imagepoint];
UIImageView *imageview = [[UIImageView alloc] initWithImage:(UIImage *)image];
[window addSubView:imageview];
from the class documentation this seems to be the proper way to do things.
what am I doing wrong?
UIImage *image = [UIImage imageNamed:@"image.png"];
CGPoint imagepoint = CGPointMake(272,0);
[image drawAtPoint:imagepoint];
UIImageView *imageview = [[UIImageView alloc] initWithImage:(UIImage *)image];
[window addSubView:imageview];
from the class documentation this seems to be the proper way to do things.
what am I doing wrong?
