Questions tagged [pushviewcontroller]

Use this tag for questions related to pushing a view controller.

Pushes a view controller onto the receiver’s stack and updates the display. After pushing it becomes the top view controller on the navigation stack. Pushing a view controller results in the display of the view it manages. How that view is displayed is determined by the animated parameter.

If the animated parameter is YES, the view is animated into position; otherwise, the view is simply displayed in place. The view is automatically resized to fit between the navigation bar and toolbar (if present) before it is displayed.

Here is detailed documentation

723 questions
128
votes
9 answers

Completion handler for UINavigationController "pushViewController:animated"?

I'm about creating an app using a UINavigationController to present the next view controllers. With iOS5 there´s a new method to presenting UIViewControllers: presentViewController:animated:completion: Now I ask me why isn´t there a completion…
geforce
  • 2,593
  • 3
  • 28
  • 44
48
votes
7 answers

popping and pushing view controllers in same action

is is possible to pop a view off the navigation stack and then push another straight onto it? I'm trying to implement a flat hierarchy for this section and would like to have a segmented controller but I can't make the segmented controller look…
Josh
  • 3,445
  • 5
  • 37
  • 55
44
votes
6 answers

How can I go back to the initial view controller in Swift?

So I have a login view, after successful login it goes to the first view of a navigation controller, then the user can go deeper to a settings view and then to a logout view. This logout should take the user back to the login view (which is not part…
matt
  • 2,312
  • 5
  • 34
  • 57
38
votes
10 answers

Restore pre-iOS7 UINavigationController pushViewController animation

So. Just started transitioning my IOS code to IOS7, and ran into a bit of problem. I've got a UINavigationController, which has child ViewControllers and I'm using pushViewController to display the next views. To create a parallax animation with a…
35
votes
5 answers

Showing pushviewcontroller animation look like presentModalViewController

Is it possible to show pushViewController animation look like presentModalViewController but that has background functionality of pushViewController?
34
votes
1 answer

When to use addChildViewController vs pushViewController

I just watched a 2011 WWDC presentation on "Implementing UIViewController Containment" (here's a link to the video) They mentioned both of these ways of adding viewControllers to the screen, and I would appreciate some clarification on best…
RanLearns
  • 4,086
  • 5
  • 44
  • 81
34
votes
9 answers

ios 7 view with transparent content overlaps previous view

Recently I updated my xcode project to work with iOS 7, but i faced a big problem. Because my whole application has only one background image (UIImageView added to key window) and all views are transparent, I face a problem when pushing…
Edvardas
  • 586
  • 1
  • 4
  • 10
32
votes
8 answers

pushviewcontroller animation is slow/choppy

I push a ViewController which contains not too many views, UIScrollView which contains 10 views inside, I have a singleton ViewController and push it again and again without releasing and allocation again the ViewController, so all the things I do…
29
votes
7 answers

hide tab bar in view with push

I have a tabBar + NavigationViewController. The Tab bar has collection view with cells(Say view1) and with cells a push seague is implemented to another view(Say view2). In view2 I want to have a navBar but no tab bar. I tried…
28
votes
11 answers

Push View from Presented View Controller in iOS

In Short : How can I PushViewController from Presented ViewController ? In Brief : I have MainViewController, In which I have one button on click of button, I am presenting a view called LoginViewController. On this page (LoginViewController), I…
25
votes
5 answers

iOS - pushViewController vs presentModalViewController difference

What is the difference beetween calling presentModalViewController and pushViewController, when : animation is set to NO (even if yes, that's just an animation style that can be changed). a navigation controller is defined when presenting the modal…
20
votes
2 answers

What exactly willMoveToParentViewController: and didMoveToParentViewController: do?

I know that starting with iOS5 and the new UIViewController containment methods, you are supposed to call these methods together with addChildViewController:, removeFromParentViewController: and the transition method. I also know the proper order of…
konrad
  • 1,664
  • 2
  • 17
  • 36
18
votes
6 answers

Is it possible to push a View Controller with a completion block?

UINavigationController's documentation contains no pushViewController methods with a completion: parameter.
17
votes
1 answer

Why can’t UIImagePickerController be pushed into navigation stack?

When using pushViewController to push UIImagePickerController: [self.navigationController pushViewController:pvc animated:YES]; an error will occur such as: Pushing a navigation controller is not supported The right solution is to use…
16
votes
2 answers

ios: Accessing a navigation controller from app delegate

I have an app that receives push notifications. In didReceiveRemoteNotifications, I would like to make the app show a particular view controller in the app's navigation controller (which happens to be the root view controller). What is the best way…
1
2 3
48 49