What is the best way to position background image below header image. Currently I have:
header = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"h.png"]];
[header setContentMode:UIViewContentModeTop];
[self.window addSubview:header];
background = [[UIImageView alloc] init];
[background setImage:[UIImage imageNamed:@"bg.png"]];
[background setFrameOrigin:CGPointMake(0,header.frameHeight)];
[background addSubview:background];
but I get the following error:
No visible @interface for 'UIImageView' declares the sector 'setFrameOrigin.'
I want to use UIView method, so that I can place a table view inside background view afterwards.
you can use:
or: