I have a UITabBarController with a few tabs.
When I click a UIButton on first view (tab) I would like to slide whole UITabBarController out and show new UIView that is positioned bellow UITabBarController.
Something like it happens on youtube iPhone app when you start playing video.
I add UITabBarController to window in appDelegate like that:
self.window.rootViewController = self.tabBarController;
SOLUTION:
[self.view.window insertSubview:welcomeViewController.view atIndex:0];
[UIView animateWithDuration:1.0 delay:0. options:UIViewAnimationOptionBeginFromCurrentState animations:^{
CGRect frame = self.tabBarController.view.frame;
frame.origin.x += 400;
self.tabBarController.view.frame = frame;
} completion:^(BOOL finished) {
//
}];
Try moving your tab bar controller frame out of sight: