Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
77 views

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 ...
nshoobs_school's user avatar
1 vote
2 answers
922 views

[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:...
Senthil's user avatar
  • 510
-1 votes
1 answer
168 views

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?...
Yiags1978's user avatar
0 votes
1 answer
136 views

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 ...
yaozhang's user avatar
1 vote
1 answer
345 views

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 ...
Neco's user avatar
  • 65
0 votes
2 answers
415 views

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 ...
Rob N's user avatar
  • 16.7k
2 votes
1 answer
2k views

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 ...
Taimoor Arif's user avatar
  • 1,230
-2 votes
1 answer
87 views

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 ...
amirbt17's user avatar
  • 611
2 votes
3 answers
927 views

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 ...
Chaudhry Talha's user avatar
0 votes
2 answers
583 views

Hi I want to put the viewDidAppear in my extension, but it cannot be triggered... see the code: extension MyAutoWelcomViewController: VehicleMangerDelegate { func didUpdateRdwInfo(...
XYD's user avatar
  • 703
0 votes
2 answers
218 views

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 ...
alju2404's user avatar
0 votes
1 answer
68 views

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 ...
Nejisan's user avatar
1 vote
1 answer
44 views

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
0 votes
0 answers
110 views

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 ...
htmlcat's user avatar
  • 346
0 votes
1 answer
306 views

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 ...
midlifecrisis's user avatar
1 vote
1 answer
820 views

I have implemented a Firebase Google login into my Swift App. I want to check in the beginning if its already a logged in user or not. I do this like that: override func viewDidLoad() { super....
Jan Swoboda's user avatar
1 vote
0 answers
72 views

The summary of my problem is; when the tableView.reloadData() is called upon firestore's local changes on the first time the view loads up it works and updates as it supposed to. However, after I ...
Melih Alan's user avatar
0 votes
2 answers
101 views

I am trying to create an animation that scrolls through a series of images. The following code does not have any animation and only the last image of the series appears on the screen. How do I fix ...
helloworld12345's user avatar
0 votes
1 answer
41 views

My swift code below which is all code no storyboard. Tries to save a switch's state using user defaults. So when the user segues to twoViewController and then segues backs to ViewController. The users ...
user avatar
0 votes
1 answer
179 views

My code below is written in all code no storyboard. What I want to do use the slider move to change the width of the imageView pic. What I have tried below does not work. When the slider moves I want ...
user avatar
-1 votes
1 answer
61 views

I am using parse server to pass data to TableViewController. I am able to retrieve data and append to my local arrays using parse. The arrays use a tableView. I have another ViewController called ...
magellan's user avatar
0 votes
0 answers
265 views

I am creating a simple to do list for iOS in xcode and I have run into a problem when trying to get the table view to reload when tabs are switched. I have written this into the view controller: ...
DevB1's user avatar
  • 1,615
0 votes
1 answer
113 views

I have a UITabBarController and a class named it ScreenLocker, in UITabBarController/ViewDidApear I initialize ScreenLocker with a call back, screen locker after c second or when app going to ...
Hamed's user avatar
  • 1,858
-1 votes
1 answer
156 views

I'm going to try to be very detailed about this, and I hope one of you guys can help me out. I have a Home VC with 2 lists stacked on top of each other, list #1 always shows up on top. However, if I ...
Aaron Coronado's user avatar
0 votes
3 answers
1k views

I actually use this to switch from a ViewController to another let vue = MAINSTORYBOARD.instantiateViewController(withIdentifier: "addhoraire") as! Addhoraire self.present(vue, animated: true,...
Cydiaddict's user avatar
0 votes
0 answers
55 views

My method is executed twice when in viewdidappear() Code override func viewDidAppear(_ animated: Bool) { getaccountdetails() } func getaccountdetails(){ if let sumacheck=...
user avatar
2 votes
1 answer
285 views

I have a UITextField & UIButton placed inside a vertical UIStackView. Programatically, I've added a UIView to serve as an underline of the UITextField. The problem comes when I compile the code. ...
Dani's user avatar
  • 3,697
0 votes
0 answers
36 views

Warning: Attempt to present on whose view is not in the window hierarchy! I presented firebase AuthViewController in viewDidLoad and getting this error. But when I present that ...
Sahil's user avatar
  • 59
8 votes
2 answers
8k views

I need to understand when UIView appears on the screen, so I need an analogue of the viewDidAppear method. I found a UIView lifecycle: willMoveToSuperview invalidateIntrinsicContentSize ...
Alexander Galkin's user avatar
0 votes
3 answers
190 views

As per my understanding, viewDidLoad() is called when the view is created and used for things that need to happen once whereas viewWillAppear() is used for tasks that require to repeat every time a VC ...
halapgos1's user avatar
  • 1,195
4 votes
4 answers
737 views

Latest XCode. I have a project in which in any storyboards/view controller setting properties such as textColor of a UILabel or backgroundColor of a UIButton in viewDidLoad doesn't work but works in ...
StronkStinq's user avatar
0 votes
0 answers
230 views

A delay of 2 seconds occurs between viewWillAppear and viewDidAppear only in one screen when application comes back from the background. Normally, there isn't a delay in this screen when the app is ...
D3sT's user avatar
  • 11
0 votes
1 answer
42 views

I have a custom UIView built using several UIButtons. In the viewDidAppear function of a ViewController I take the subviews of this UIView and attach an addTarget to them. Everything works as expected ...
Greensouth's user avatar
0 votes
1 answer
41 views

I appreciate the many entry points the iOS SDK offers for developers to update their UI...(viewDidLoad, viewWillAppear, viewDidAppear, UIApplicationDidBecomeActive, etc.) but oftentimes I wonder if I ...
Austin Berenyi's user avatar
1 vote
1 answer
287 views

I am newbie in iOS and Swift. I am currently working on an application where I am required to show a tab bar with a big button in the center. Given the time constraints, what I have done is I created ...
Keya's user avatar
  • 849
0 votes
1 answer
171 views

I've looked at other UITableView questions, but did not find any that matches this scenario. I have a normal UITableViewController that accepts an array from a search form (IOW, dynamic data). The ...
Brogrammer Dude's user avatar
70 votes
6 answers
122k views

Perviously when I wanted to make some actions when screen is opened I put them inside componentDidMount. For example I can fetch some data. like this. componentDidMount() { this.updateData(); } ...
rendom's user avatar
  • 3,725
19 votes
4 answers
15k views

I have written a flutter plugin, that displays a camera preview and scans for barcodes. I have a Widget called ScanPage that displays the CameraPreview and navigates to a new Route when a barcode is ...
hendra's user avatar
  • 2,651
1 vote
1 answer
997 views

For the following viewController hierarchy, isUserInteractionEnabled doesn't appear to be working as expected. NavigationController(ViewController A) --- pushes to ---> NavigationController(...
aak's user avatar
  • 67
1 vote
1 answer
759 views

My code uses arkit. All I want to do is when I change the text of the label. The change is reflected in the arkit text. Currently its not. Whatever the arkit label stays and default and never changes ...
user avatar
3 votes
3 answers
1k views

I have a 1-screen tutorial View Controller. I want this tutorial VC to show only once (userdefaults), but I want a smooth transition from when the launch screen finishes -> tutorial VC. Right now - ...
Joe's user avatar
  • 3,930
0 votes
1 answer
35 views

When using input structures to create multiple save arrays, do not display the array in a custom cell. The following is the initialization settings struct LearnList { var Title:String var ...
Felix Xiong's user avatar
0 votes
1 answer
137 views

As the title goes, I have 2 view controllers connected by 2 buttons. On the first view controller, it modally segues to the second view controller via a button. On the second view controller, there is ...
callum schenk's user avatar
7 votes
1 answer
3k views

I have an issue with an app I'm developing. XCode version: 9.2 (9C40b) Programming language: Swift 4 Target iOS version for the app: 11.2 Scenario: I have a mainVC (ViewController) which calls a ...
Markussen's user avatar
  • 174
2 votes
1 answer
5k views

I want to focus a textField after the user navigated back with the back button in the navigation bar. How do you do that? I tried the autofocus property of the TextField widget. But this only works ...
Renato Stauffer's user avatar
0 votes
1 answer
173 views

I have recently been battling with my view controller to set the correct dimensions of a border on a UIView. *edit, this is for a static tableview (i am using it as a form). I am aware of rounding ...
Axemasta's user avatar
  • 860
0 votes
2 answers
247 views

I have a static table view with cells that have a rounded border. I have noticed when testing on different simulators that whilst my auto layout constraints work, the border isn't always the right ...
Axemasta's user avatar
  • 860
-3 votes
1 answer
864 views

I wanted to disable animated in viewDidAppear. I've set the code below but it shows me this error: "cannot assign to value: 'animated' is a 'let' constant" override func viewDidAppear(_ animated: ...
Nur II's user avatar
  • 171
0 votes
1 answer
156 views

I am trying to implement a fullscreen UIImagePickerController in my app. I couldn't present the view controller in viewDidLoad because presenting view controllers on detached view controllers is ...
maddie's user avatar
  • 1,954
0 votes
1 answer
52 views

I am using iOS-Charts and I have a ViewController where I call the function that fills the data for the chart. Currently I call it in from ViewDidAppear, but it takes quite long to load. Where is ...
Maruta's user avatar
  • 1,071

1
2 3 4 5 6