Questions tagged [popviewcontroller]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
52 views

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 {...
Ceri Turner's user avatar
0 votes
1 answer
84 views

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 = ...
JuFa512's user avatar
  • 119
0 votes
2 answers
290 views

Change a list of presented view controllers in swift like

My app has complex transition sequence: A presents modal B B presents modal C A presents D (behind B) C is dismissed to D The problem is how to insert D. In case of push-pop animations ...
Vyachaslav Gerchicov's user avatar
-1 votes
3 answers
583 views

Swift: How to pass data when popping view controller

I want to pass data from childVC to parentVC when popping view controller. ChildViewController { /processing data/ //get data value value = 123 self.navigationController?.popViewController(...
IskandarH's user avatar
0 votes
1 answer
451 views

Cart count not updating in navigation bar while popViewController in swift

I have created custom navigation bar with cart and its count like below code: like this if i call setUpNavigationBar() in all viewcontrollers i am getting navigationbar with cart and count func ...
learn_swift's user avatar
0 votes
0 answers
81 views

reloading data/refreshing data in parent ViewController

From a parent VC two other VCs get pushed (first adds a group, second adds some (optional) more data); after popping them the parent VC appears but the new data (new group) is not added. I am using ...
agazaur's user avatar
  • 27
0 votes
1 answer
188 views

Show UIView When Popping Back on a Navigation Controller

So I'm trying to show an UIView in a stack view when I click continue on a controller and pop back to the previous controller. However, I'm having trouble showing the view when I pop. It will show if ...
Zachary Smouse's user avatar
0 votes
1 answer
456 views

How to dismiss viewcontroller and pop to root viewcontroller swift?

I have main TabbarController which holds ViewController(A). From this A pushed another ViewController(B) using navigationController?.pushViewController From B pushed another ViewController(C) using ...
alphonse's user avatar
  • 697
1 vote
1 answer
1k views

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: ...
Никита Бабенко's user avatar
6 votes
1 answer
3k views

Pass data to previous viewcontroller VIPER

I am using VIPER architecture in iOS swift. I have 2 viewcontrollers, let's say A and B. At first I'm going from A to B, performing some tasks and coming back from B to A. With MVC or MVVM, we can ...
Arnab's user avatar
  • 4,236
1 vote
1 answer
538 views

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 ...
RenuR's user avatar
  • 57
1 vote
4 answers
320 views

(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 ...
faris97's user avatar
  • 402
1 vote
1 answer
82 views

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 ...
user avatar
1 vote
5 answers
2k views

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 ...
tibi95's user avatar
  • 51
0 votes
0 answers
534 views

Why TableView does not reload data after popViewController?

In my app I have a ViewController with a collectionView and a tableView. My CollectionView shows the dates and the tableView shows the data in that date. I need to create a date before create the ...
Afonso's user avatar
  • 87
0 votes
2 answers
816 views

How to receive same callback in two ViewControllers when one is opened?

I want to receive the same callback in the ViewController that is opened at in the time that server response in my Swift Application. I have two ViewControllers. The first ViewController registers a ...
user3745888's user avatar
  • 6,163
1 vote
1 answer
131 views

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. ...
Vaisakh KP's user avatar
0 votes
1 answer
90 views

How to propagate changes while back navigation in android and ios?

I have a Xamarin.Android and Xamarin.iOS app. The app has a data model called as PRODUCT. In various screens, we will list the products depending on queries or other criteria. Let's say that the user ...
Midhun Kumar's user avatar
0 votes
2 answers
491 views

Navigation Controller is nil, though embedded in a view controller

As you can see, my navigation controller is embedded in the root view controller. In this view controller, I have a subview, and at one point, I push the popover onto the view controller. For some ...
Xcoder's user avatar
  • 1,433
0 votes
0 answers
34 views

View Controller with Embedded Navigation Controller linked to tableview

Mainly, my iphone application right now is a UIviewController with navigation buttons, logo, and title on the top of the screen. Inside this controller is a container view, which has an embedded ...
Matt Galloway's user avatar
0 votes
3 answers
727 views

how to call popviewcontroller in UITableViewCell

The current structure is firstViewController -> pushViewController(SecondViewController) -UIViewController ->filename : secondViewController -UITableView -...
hoyeong kim's user avatar
0 votes
1 answer
214 views

iOS: Scroll UITableView back to the top after popping ViewController

My UITableView needs to scroll all the way to the top after popping back to ViewController under certain circumstances. The code below works fine (I edited it for simplicity), but I am hoping to ...
Curt Rand's user avatar
  • 1,035
0 votes
0 answers
508 views

UITabBar disappear after popToRootViewController

My app simplified view hierarchy is the following: <UITabBarController>, | <UINavigationController> | | <HomeViewController> | <UINavigationController> | | &...
Florian Ldt's user avatar
  • 1,145
3 votes
0 answers
82 views

Swift - First UIView Controller not responding after calling popviewcontroller() from second

Steps: 1. Navigating from first ViewController ViewController1 to second ViewController TamilVowelsViewController by clicking button1 2. User clicks on home button which navigates back to ...
Swaroop Kumar's user avatar
0 votes
0 answers
69 views

Back from presentViewController distorts the screen - ios objective c

I'll give an overview of what I am trying to achieve: 1) There is screen1 on which there is a header on navigation bar. 2) On a button click, I am adding screen2 (it doesn't have a nav bar) as a ...
A_G's user avatar
  • 2,270
1 vote
3 answers
3k views

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 ...
waseefakhtar's user avatar
  • 1,393
1 vote
2 answers
152 views

Adding New viewcontroller to current stack

I am inserting a ViewController into my current stack. And trying to perform popviewcontroller like this. var viewControllersArray: [UIViewController] = self.navigationController!.viewControllers ...
user1960169's user avatar
  • 3,543
5 votes
1 answer
724 views

how to prevent keyboard from dismissing while using popViewController custom transition

To provide the interaction pop gesture in full view, i have a UIPanGestureRecognizer in my controller with which we can swipe from left to right any where in the view controller to pop the controller, ...
Madhu's user avatar
  • 994
2 votes
1 answer
907 views

Swift 3 iOS- Programmatically Set and Push a new RootVC from a SplitViewController's DetailNavigationController

I have a SplitViewVC that has a MasterNavVC who's root is a TableViewVC. The SplitViewVC also has a DetailNavVC that has a WhiteVC as it's root. I have several other view controllers that I want to ...
Lance Samaria's user avatar
0 votes
1 answer
106 views

Pop old viewController

So I have 3 view controllers (and a nav view controller). Starting at VC1 I push to VC2 then when the scene for VC2 is done I pop VC2 then push to VC3. Only problem with that is that the user can see ...
insta catering's user avatar
0 votes
1 answer
696 views

popToRootViewController not removing prompt

I have an app that prompts the user for various information before doing a task. Once all the information is put in by the user, I do a UIApplication.shared.openUrl(url: url) and then self....
Jake's user avatar
  • 13.3k
1 vote
0 answers
182 views

Unable to find strong reference to an object using instrument - XCode 8

Let's say I have root view controller A. Then I push view controller B. But after pop B, its not getting released (checked using dealloc method, which is not getting called upon popViewController. ...
iAkshay's user avatar
  • 1,173
0 votes
0 answers
293 views

application crashes when popViewControllerAnimated animation set NO

Its look strange for me Application crashes for me when navigate to back. // backButtonAction. -(void)backAction:(id)sender{ [[self navigationController] popViewControllerAnimated:NO]; } Its ...
kiran's user avatar
  • 4,315
3 votes
1 answer
98 views

Dismissing view controllers

If I switch between several views in my app only by using presentViewController or pushViewController and without using dismissViewController or popViewController, Can I dismiss presented view ...
sreejesh's user avatar
  • 718
1 vote
3 answers
387 views

Unable to go back through a navigation controller to a VC of another navigation controller using Swift

As you can see below, the notificationsVC is a part of the TabBarController which is embedded in a navigationContoller(lets call it first nC). Then theres a segue from notificationsVC to the second ...
Tequila_Tears's user avatar
1 vote
1 answer
261 views

popViewController not working in NSURLSessionDataTask block in iOS

I have created request and I want to popView when i will get success message in response. Here is my code : NSURLSession *session = [NSURLSession sharedSession]; NSString *baseURLRequest = [NSString ...
DevTest's user avatar
  • 11
0 votes
1 answer
1k views

How to access the second last viewcontroller in a navigation controller?

In my storyboard the User has to fill a form. After that I push a new ViewController onto the navigation stack. If I now want to change things onto the second last ViewController I need to access it ...
rockZ's user avatar
  • 855
1 vote
1 answer
2k views

iOS: how to detect if viewcontroller appears after pop or dismiss

I have a view controller VC1 and I am doing following two operations on it: Push another view controller VC2 from VC1's navigation controller by calling [VC1.navigationController pushViewController: ...
atul's user avatar
  • 168
0 votes
1 answer
861 views

Wrong direction arrow when popup shows up

I'm using this function to show a popup view to select image from camera roll: func selectImage(sender: UICollectionViewCell){ if UIImagePickerController.isSourceTypeAvailable(...
Maysam's user avatar
  • 7,266
0 votes
1 answer
41 views

After popview method called,the scrollview stops work

I have navigation container with A, B views in it. When A first entry stack, I am able to roll the view because I set the scrollview widget in A view. When I roll to the bottom of A view, B view ...
Joe Indra's user avatar
0 votes
0 answers
626 views

popViewController not working if previous controller has uialertcontroller swift

I am using alertcontroller with indicator in FirstViewController, and I use self.dismissViewControllerAnimate to dismiss it. Then in SecondViewController I use popViewController to return to ...
FH-'s user avatar
  • 133
1 vote
1 answer
116 views

iOS8 : When Keyboard appear and press Back button, at that time next view appear very slow

I have ViewController (v2) with the UITextView . I pushed that view from the viewController (V1). On V2 When I tap on textview and keyboard appear after that tap on back button and move on V1. I ...
Divya Bhaloidiya's user avatar
1 vote
0 answers
118 views

Override navigation controller back button

I have a UIViewController called detailViewController that I push to from homeViewController. In detailViewController there is a container that will display subview A, B and C. If I tap the back ...
Andrew Davis's user avatar
  • 2,320
0 votes
2 answers
898 views

push and pop controller slow response

I have 3 controllers. I am using push and pop method to change the controllers. [self.navigationController pushViewController:product_subcatagory animated:YES]; [self.navigationController ...
Sanjeev Yadav's user avatar
-1 votes
1 answer
500 views

I want to pop from viewContoller to parent viewController with out code

I want to pop from childviewContoller to parentviewController in storyboard with out write any code in file with the help segue. Thank You in Advance.
Pramod Tapaniya's user avatar
-1 votes
1 answer
134 views

How to push to detail view controller on button click by didselectrow manually; get back again and then push as count of data source array?

I have a uitable view and I want to perform didselectrow manually on button action; then next view controller is pushed. Take their a screen shot and get back. Again perfom this action till data ...
user3807662's user avatar
1 vote
1 answer
138 views

reusing the same UITableViewController

I have a tableviewcontroller that needs to drill down and show 3 layers of data. I have no problem drilling down but when I go back, the cells and table become empty. I'm currently using storyboard ...
jon_na_fun's user avatar
  • 1,143
9 votes
1 answer
2k views

iOS WatchKit - How to detect when back button is pressed on Watch?

I need to do some cleanup on 2nd view controller when the back button (arrow) is pressed on the Apple Watch. Is there any sort of method for detecting/handling when a back button is pressed / view is ...
JimmyJammed's user avatar
  • 9,638
0 votes
1 answer
196 views

button Highlighted not work when interactivePopGestureRecognizer.enabled = YES

Use interactivePopGestureRecognizer when popViewController. Set Custom back button and keep interactivePopGestureRecognizer = YES. - (void)setNavigation { [self.navigationController....
xx11dragon's user avatar
0 votes
0 answers
95 views

Change the animation dismissViewController to be equal to the popViewController

In my application I have popViewController and dismissViewController. In some dismissViewController I liked to do animation of popViewController to achieve a consistency between transactions . is it ...
Pedro's user avatar
  • 497