I have a viewcontroller where I simulate an view on. I have a firstViewController and I have loginViewController. Here is the code how I popup the loginViewontroller on top of the firstViewcontroller.
in firstViewController.m
LoginViewController *login = [[LoginViewController alloc]initWithNibName:@"LoginViewController" bundle:NULL];
[self presentModalViewController:login animated:YES];
And in loginViewController I have the following function.
-(void)initialDelayEnded {
self.view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.001, 0.001);
self.view.alpha = 0.0;
[UIView animateWithDuration:1.0/1.5 animations:^{
self.view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.1, 1.1);
}completion:^(BOOL complete){
[UIView animateWithDuration:1.0/2 animations:^{
self.view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.9, 0.9);
}completion:^(BOOL complete){
[UIView animateWithDuration:1.0/2 animations:^{
self.view.transform = CGAffineTransformIdentity;
}];
}];
}];
}
In firstViewcontroller I have a background image. What I want to do now is that loginViewcontroller pops up the image is still visible.
Can anybody help me?
Thanks in advance.