added to header
UIImageView *background
Revised code
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
UIImage *bg1 = [UIImage imageNamed:@"bgImage.png"];
background = [[[UIImageView alloc] initWithFrame:CGRectMake(0, 568, 320, 568)] initWithImage:bg1];
[self.view addSubview:background];
}
-(void)viewDidAppear:(BOOL)animated {
[UIView animateWithDuration:10.0
delay:3.0
options:UIViewAnimationOptionCurveLinear animations:^{
[background setFrame:CGRectMake(0, 0, background.frame.size.width, background.frame.size.height)];
}
completion:nil
];
}