Questions tagged [popviewcontroller]

147 questions
1
vote
1 answer

prevent ios7 pan gesture to pop view controller

iOS 7 has introduced pan gesture to popViewController. It introductes problems with the sidebar that I am using so I want to prevent this new function of ios7. How can I cancel that behaviour? Thanks in advance
Ali Aksakarya
  • 471
  • 4
  • 11
1
vote
2 answers

How to dismiss UIAlertView when its parent view popped from outside?

I have showed an alert view locally in an function call like this... UIAlertView *alert_local = [[UIAlertView alloc] initWithTitle:nil message:@"Are you sure want to…
Newbee
  • 3,231
  • 7
  • 42
  • 74
1
vote
2 answers

IOS popviewcontroller removes the navigation bar

I'm using storyboard in my app and I'm trying to move bac to a previous view controller using [self.navigationController popViewControllerAnimated:YES]; It works fine but it gives me the right viewcontroller but it removes the navigation bar from…
1
vote
2 answers

how to pop to different view controller

I have four view controller classes A, B, C, D. Class D is pushed when the "go" button is pressed from Class A & B. I have a method in the app delegate which does that for me -(void)showViewController { self.ViewController = [[[ViewController…
1
vote
3 answers

ios How do I know the controller is a "push" or "pop" returned

i have three controller and i wanna kown the controller is a push or pop A controller: { if(!b) b = [B alloc] init]; [self.navigationController pushViewController:b animated:YES]; } B controller: - (void) viewDidAppear:(BOOL)animated…
zt9788
  • 948
  • 4
  • 16
  • 31
1
vote
1 answer

Using Kal calendar from existing table view and popToRootViewController not working

I'm trying use Kal calendar in my project. Here is what I understand to be the case so far: Whichever view controller that calls Kal must implement the UITableViewDelegate method "didSelectRowAtPath" Issue: My view controller that calls Kal…
rustywave
  • 11
  • 1
1
vote
1 answer

How to set push and pop view controller flow

In my application,i want to set pop view controller right to left.Where as the push view controller flow left to right ,That fine .I tried this How to change the Push and Pop animations in a navigation based app but it works by transition animation…
1
vote
1 answer

iOS - Unexpected crash when popping and pushing a view controller with a MKMapView

Hi there can anyone help me with the following problem: I have a ViewController with a MKMapView inside of it, and when i pop this view everything is alright but when i try to push this ViewController back in my NavigationController's stack my app…
1
vote
1 answer

PopViewController has no effect

I'm new to iOS programming and I'm spending way too much time on something that is supposed to be relatively easy to implement. Surely this is a beginner's question, but I just can't seem to find an answer. I'm currently developing an iOS VoIP app.…
1
vote
2 answers

prepareForSegue: sender: alternative for popViewControllerAnimated:

I'm trying to 'do some stuff' at the same time as I am popping the top viewController off the stack. Popping a viewController from the stack does not seem to be considered a segue so I can't use prepareForSegue: sender: Is there an alternative…
1
vote
1 answer

What if object gets released before the completion of its method execution

I have an viewController that fires a web service get some data and stores the result in core data after parsing in a different thread.. I have a lot of data so parsing will take some time and am not sure if popping the viewController in navigation…
0
votes
2 answers

Memory not released in iPhone app

I am having problem when I use pushViewController - Memory goes to 28 MB from 9 MB, but using popViewController does not releases the memory (supposed to become 9 MB) but I am getting 28 MB. Below is the code that pushes the view. /* Video Handler…
Subhashis Pandey
  • 1,473
  • 1
  • 13
  • 16
0
votes
2 answers

How to handle backBarButtonItem pressed?

I have almost done this in all the application but I have 3 views stacked in navigationController and I need to jump from the third view to the first view. As I understand I can do this via viewWillDisappear only. But if I try this "jump" I will get…
0
votes
0 answers

Pop single view on each tab tap

I have a tab view setup as below struct TabBarView: View { @Environment(\.managedObjectContext) private var viewContext var body: some View { TabView { SetListView() .tabItem { Label("Set List", systemImage:…
Ceri Turner
  • 830
  • 2
  • 12
  • 36
0
votes
1 answer

popViewController after dismiss Modal VC Swift

I want to popViewController after I dismiss a modalVC. However my code is not working. What is wrong? func showMessage(withTitle title: String, message: String) { let alert = UIAlertController(title: title, message: message, preferredStyle:…
JuFa512
  • 119
  • 7