I am using this code to place an image but it doesn't seem to work. The image just gets shown at 0,0
from the class documentation this seems to be the proper way to do things.
what am I doing wrong?
PHP:
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?