Hi, I have done a tab-bar application in iphone/ipad. After completing every thing the client wants a login-controller which the user have to login to enter the first view.The first view a singleview that contains signin button and signup button,this view must be the first view,the user tap the signin it redirect to the signin page means the loginpage. After the login the user have to enter the first view of the tabbarapp. I tried this code in appDidFinishLaunching
RootViewController *log = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
[window addSubview:tabController.view];
[window addSubview:log.view];
[window makeKeyAndVisible];
rootviewcontroller is the singin signup button view,i got this view in my app launch.But when i enter the singin ,it wont redirect to the singin or login page.My code for this is
pagesignIn *secondViewController = [[pagesignIn alloc]
initWithNibName:@"pagesignIn"
bundle:nil];
[UIView beginAnimations:@"flipping view" context:nil];
[UIView setAnimationDuration:1];
//[UIView setAnimationCurve:UIViewAnimationTransitionFlipFromLeft];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
forView:[[self navigationController] view] cache:YES];
[self.navigationController pushViewController:secondViewController animated:YES ];
[UIView commitAnimations];
But nothing comes in action, then I put this [self.view removeFromSuperview]; to the above code,now I got the button action but it did-not redirect to the sign-in page,but it redirected to the first page in tab-bar app.What will I do to go tot sign-in page after clicking the sign-in button? please help me.
Thanks in advance.