260 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
80
views
viewDidAppear Not allowing me to edit IBOutlets [duplicate]
Hi I am very new to swift coding and attempting to make a fake progress bar with the UIProgressView.
I have code in a viewDidAppear so that once the view controller appears it starts but none of the ...
1
vote
2
answers
926
views
Inconsistent behavior in viewDidAppear Objective C
[ViewController] Calling -viewDidAppear: directly on a view controller is not supported, and may result in out-of-order callbacks and other inconsistent behavior. Use the -beginAppearanceTransition:...
-1
votes
1
answer
168
views
Swift - Detect when certain table section comes into view [duplicate]
I have a table with 7 sections - only the first 2 sections are visible when it loads.
To simplify things - how would I print "Now at section 5" when the user scrolls and gets to that section?...
0
votes
1
answer
136
views
Anomaly where previous view shows up briefly before new view is shown
I encountered this bug where my previous view in the NavigationController hierarchy incorrectly shows up briefly before my newly pushed view is loaded. I couldn't diagnose or reproduce reliably. Here ...
1
vote
1
answer
348
views
How to exclude UIViewControllers other than views from Swizzle Method?
I am trying to override viewDidAppear() methods of my custom ViewControllers and i found a solution using swizzle method. It works but when keyboard is visible, my method also gathers Keyboard ...
0
votes
2
answers
423
views
How to implement `viewDidAppear` without NSViewController?
There is a method in NSViewController called viewDidAppear. The docs say:
This method is called after the completion of any drawing and animations involved in the initial appearance of the view.
If ...
2
votes
1
answer
2k
views
Perform function on Dismiss of a View Controller
i am calling a GET(method) API on viewDidAppear function of a view controller. i am presenting a new view controller using navigation controller over my first view controller. on the second view ...
-2
votes
1
answer
87
views
Same optional value is sometimes nil and sometimes not
I have the following in my viewDidAppear:
override func viewDidAppear(_ animated: Bool) {
// Get the index based off of which tableview cell was selected in the last VC
let ...
2
votes
3
answers
942
views
What is the equivalent of viewDidAppear in React Native
Scenario:
I have a Login.js that I show as a Modal from multiple screens wherever I have placed the check to see if a user is logged in or not. After the user successfully login I change a key called ...
0
votes
2
answers
588
views
trigger viewDidAppear in extension or how to use variable from extension in viewController?
Hi I want to put the viewDidAppear in my extension, but it cannot be triggered...
see the code:
extension MyAutoWelcomViewController: VehicleMangerDelegate {
func didUpdateRdwInfo(...
0
votes
2
answers
220
views
Swift: Reload data in UITableView element triggered in an external class
I'm trying to call the reloadData() method to update a table view in an external class (different view controller), using the method viewDidDisappear().
I can already update the table view when the ...
0
votes
1
answer
68
views
UIPageViewController jump directly to page causes issues with instance variables
I'm rather new to Swift, having coded in JavaScript so much more, so I must be missing something subtle here. I have a UIPageViewController that controls 3 pages, and each page has a particular ...
1
vote
1
answer
44
views
create if statement based on certin time not working in view did appear
I want my codes background uiviewcontroller background to change depending on the hour. If the code is in the first 60 minutes of the day the background color works. However when the time goes to the ...
user avatar
user7763839
0
votes
0
answers
110
views
How do I set the text of a label from outside of viewDidAppear?
I'm writing a Mac (Swift) application on Xcode which gets data from a command and asynchronously changes the stringValue of some text in the window. I already figured out the asynchronous part from ...
0
votes
1
answer
307
views
viewDidLoad vs viewWillAppear vs viewDidAppear parts of this code
I am trying to work on this piece of code from a project I downloaded and trying to use in my code.
In the viewDidLoad, a pickerView is populated either by "New Puzzle" or if a user saved a game in ...