Questions tagged [viewwilldisappear]

21 questions
5
votes
0 answers

UISplitViewController calling viewWillDisappear(_:) before the view is loaded at launch on iOS 11.2

I have an app with a UISplitViewController as the initial controller, and it has both a master and a detail view controller (embedded in UINavigationControllers) as its child view controllers, laid out in Interface Builder. The split view…
jsblau
  • 81
  • 7
3
votes
1 answer

present ViewController calling viewWillDisappear but does not call viewWillAppear

Following is my code present safari view controller if let url = URL(string: "https://www.ggogle.com.com/") { let config = SFSafariViewController.Configuration() config.entersReaderIfAvailable = true let vc =…
3
votes
2 answers

iOS UITextField resignFirstResponder on viewWillDisappear

I have an application with two simple screen. The first screen always opens same instance of the second screen. The second screen has a text field and a button to manually hide keyboard. The resignFirstResponder on viewWillDisappear is not…
fthdgn
  • 1,339
  • 1
  • 13
  • 18
3
votes
2 answers

ViewDisappear animation before tabbar click

I have a TabBarController that has 3 navigationController, where each has a corresponding viewController: AViewController, BViewController and CViewController. First one has a UIView element that I want to run animation against it when…
user1019042
  • 2,428
  • 9
  • 43
  • 85
2
votes
1 answer

Cancelling a View Disappearing using ViewWillDisappear

My application uses the NavigationController. On the back button press I would to check that a certain condition has been met. If it hasn't I want to warn the user that the work they've done won't be saved. I'm trying to use the viewWillDisappear…
benjiiiii
  • 478
  • 10
  • 33
1
vote
3 answers

Trigger events when ViewController covered by a presented ViewController

I would like to process code when a ViewController is no longer visible due to presenting a new ViewController. I cannot use ViewWillDisappear etc since the controller is not technically ever dismissed from the stack - you just can't see it. What…
RobertyBob
  • 803
  • 1
  • 8
  • 20
1
vote
1 answer

UIBarButtonItem causes app to crash

I'm learning to code in Objective-C by developing a simple app. I'm using a UISplitViewController which has UIBarButtonItem. When you tap an item on the left UINavigationController, shows up on the right one. This right one has a button inside…
0
votes
0 answers

How do I trigger an alert when buy/sell signals change in a real-time bar

I've written a trading indicator in Pine Script v5, to auto trade using bots. In manual back testing it performs very well but in real time, live trading, I get many "ghost" signals that trigger my bots on and no off signal, due to the…
0
votes
2 answers

View will appear is not firing when we dismiss notification settings overlay

I have a view controller when a button clicked I'm taking the user to app settings. UIApplication.openApplicationSettings() When I come back from appsettings to app then viewwillappear method is not firing. or is there any other method that will…
0
votes
0 answers

Show SVProgressHUD on viewWillDisappear

Context : My UIViewController is showing an edit profile view, with a few UITextField (first name, last name, birthday, ...). There is no "save button", the values update on the database as soon as the textFieldDidEndEditing is called. I want to…
Quentin Rth
  • 178
  • 1
  • 15
0
votes
4 answers

How to pass data to parent view controller

I'm performing a segue on my parent VC when clicked on an image. I want to pass data back to the parent VC from child VC. I've been exploring various options to pass data back to parent VC but can't figure it out. Since the child VC is part of…
0
votes
0 answers

hide the pkhud HUD does not work on viewWillDissapear

i have several api call functions in chain as needed showing a PKHUD hud windows the hud works well but i cannot hide the hud in the viewWillDissapear, to make more sence i have profileViewController that is part of UINavigationController nesteed in…
0
votes
1 answer

iOS - Why my next view callback my previous view?

My situation is the next : I have two view controller. The first contains an UITableView. When I tap on a cell, the second view is called and display another UITableView. Problem : Immediately that my second view has been displayed, it's removed and…
0
votes
3 answers

UINavigationBar title colour

Why doesn't the navigationBar title change its colour to white when I'm back on my main UIViewController? Here is simple code (viewWillAppear, viewWillDisappear), but it doesn't work, the title stays green when I'm back on this VC. The main colour…
0
votes
4 answers

Move view when a specific textfield is selected swift

I am created a meme generator app to better learn Swift and Xcode. I am learning to move the view when the user interacts with a text field that would be obstructed by the keyboard. I have this functionality working, with one exception. The desired…
Andrew Tuzson
  • 619
  • 8
  • 28
1
2