Questions tagged [popviewcontroller]

147 questions
1
vote
2 answers

How to get UIBarButtonItem to call "pushViewControllerAnimated:(BOOL)" to the UINavigationController?

I'm trying to get a sort of "left to right" hierarchical navigation going, with the UINavigationController. I'm using this code: -(IBAction)showSettings:(id)sender { UINavigationController *aNavController = [[UINavigationController alloc]…
1
vote
2 answers

How to change stuff in parent view, when calling popViewControllerAnimated:

I have a navigationControll with several views. Everything works properly. I now want to show an alert in the parent view, after i call the method [self.navigationController popViewControllerAnimated:YES]; in the child view. I configured the alert…
StinkyCat
  • 1,236
  • 1
  • 17
  • 31
1
vote
2 answers

iOS UIPopoverController delegate not working, remains nil

I have followed several tutorials/examples/answers, etc., to try and have a Cancel button within a popoverController use the delegate method to dismiss the popover (itself). I have had no luck and I'm stuck. Below are the pertinent code snippets. I…
Tom Redman
  • 5,592
  • 4
  • 34
  • 42
1
vote
2 answers

IPhone Segmented Control Tapping

Is it allowed to switch to different screens (like popViewController / pushViewController) when we tap the segments of segmented control? or do we have to stay in the same screen and change the views?
1
vote
1 answer

popViewControllerAnimated: called on UINavigationController while an existing transition or presentation is occurring

I have a tableview, and as soon as anyone presses a cell, the viewcontroller should pop. This is the code for my tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) method: override func tableView(_ tableView: UITableView,…
1
vote
1 answer

popViewController and then immediately present an alert controller

I'm trying to pop the controller from an alert action and getting to another view controller. I want to do some action immediately after I get on to this other controller, say open another alert controller. How do I do…
1
vote
4 answers

(Swift) popping back to navigation controller

I will describe what I want to do. I have 3 viewControllers. The first one should be navigation one, and I think I have made mistake there in code. First VC leads to Second, and the second VC leads to Third VC.The third one has got a button which…
1
vote
1 answer

Popping View from UIAlertView Alert

I have a 5-6 view controllers in my application and I am using navigation controller for that. Now what I am trying to do is : From entering one view controller to another, a UIAlertView box comes and on clicking "No", it should pop the view…
Vik
  • 488
  • 2
  • 10
  • 19
1
vote
1 answer

Pop to next viewController in ios

I used this code : self.navigationController?.popToViewController(vc, animated: true) By using this it is poping to view controller but tableView is not loading at a time,i need to go back and come again then it is loading. This code : let vc =…
user12218731
1
vote
5 answers

iOS 13 and UINavigationBarDelegate::shouldPop()

I've upgraded the Xcode to 11, and I found some issues on iOS13 Simulators/real devices of our iOS app with shouldPop() method from UINavigationBarDelegate protocol: This protocol has 4 methods, 3 of them are working fine, only this shouldPop()…
tibi95
  • 51
  • 5
1
vote
1 answer

I want to pop my view from particular view but it works like LIFO

i am using navigation based application but i want to pop my view from any of the view i want but it always work like LIFO, what i can do? Is it possible in iPhone ,If it is possible then help me.. I am using this code for pop my…
Umair_uas
  • 673
  • 1
  • 9
  • 27
1
vote
1 answer

How to pop ViewController to root when connected to navigation controller

Im trying to call popToRootViewController function from a view controller that is connected to a navigationController. When i removed that navigationController im able to go to my RootViewController. But if there is a navigation controller connected…
1
vote
1 answer

Memory leak when pushing a UIViewController

Each time I push a new viewcontroller, it adds about 3MB. TestVC is a brand new VC with one method for pushing a new version of the VC. UIViewController *vc = [[TestVC alloc] initWithNibName:nibName bundle:nil]; [self.navigationController…
smcdrc
  • 1,671
  • 2
  • 21
  • 29
1
vote
1 answer

How can I popViewController to rootViewController?

Let me specific. I have three XIBs. From the first XIB i used pushViewController and got into the second. From the button click in second XIB i got into the third. The thing is, On the click of Cancel button in third ViewController I have to go the…
1
vote
3 answers

How to go back to the initial ViewController the right way?

I have a few view controllers with navigation bar and tab bar. Then I have an initial view controller with no navigation bar and tab bar. I want to go back to the initial view controller with no other view controllers in stack. Here's what I do: //…
waseefakhtar
  • 1,373
  • 2
  • 24
  • 47
1 2
3
9 10