UIViewController instance method that notifies the view controller that its view was added to a view hierarchy.
Questions tagged [viewdidappear]
261 questions
2
votes
2 answers
Does any know how to get around viewDidAppear not being triggered when exiting from a UIModalTransitionStylePartialCurl segue?
Does any know how to get around viewDidAppear not being hit when exiting from a UIModalTransitionStylePartialCurl segue?
- (IBAction)buttonSelector:(id)sender
{
// creating object for title screen
UIStoryboard *storySelection =[UIStoryboard…

Grymjack
- 529
- 1
- 10
- 21
2
votes
1 answer
iOS NSUserDefaults loads slow
I am using NSUSerDefaults to store a couple strings and integers for my application. Whenever a view is opened, the string is loaded slower than the view so you see a glitch. For example, I save the selectedSegmentIndex and then read it in…

Jon Erickson
- 1,876
- 4
- 30
- 73
2
votes
2 answers
Call method in viewDidAppear
I've set up a void method which is called from another class if the user touches the button.
However, I got this error with "whose view is not in window hierarchy" and then I found this: whose view is not in the window hierarchy. I just want to…

MasterRazer
- 1,377
- 3
- 16
- 40
2
votes
3 answers
iOS 6 maps- not animating PIN drop
I have created a custom MKAnnotation class and it has been working - until iOS 6 came out. Since then my pins get added to the apple map but now without a drop animation! Is this how it is set or there maybe an an issue with the way I'm doing…

pnizzle
- 6,243
- 4
- 52
- 81
1
vote
2 answers
iOS: Running database query in viewDidLoad only works once
So let's see if I can write a clear enough description of my problem...
I'm developing an application for a museum, where the user can find artworks either through an id or by scanning a qr tag...
Once either an id is entered or a tag scanned, the…

user969043
- 756
- 2
- 13
- 34
1
vote
2 answers
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:animated: and -endAppearanceTransition APIs on…

Senthil
- 510
- 12
- 28
1
vote
1 answer
performSelector:withObject:afterDelay in viewDidAppear is not working when app launches
I have to move some code from viewDidAppear to a new selector to fire after 0.1f seconds.
So I have done something like:
-(void) viewDidAppear:(BOOL)animated{
[self performSelector:@selector(startShowing) withObject:nil afterDelay:0.1f]; …

CristiC
- 22,068
- 12
- 57
- 89
1
vote
2 answers
ViewDidAppear is not called in tab bar based app
I have a problem. I am working on an app which is tab bar based app. In this app, we call [self.view addSubview:newVC.view] when we want to navigate to a new view. newVC is the view controller of the new view that we want to display. Also we use…

Aqueel
- 1,246
- 3
- 23
- 46
1
vote
1 answer
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 UIViewControllers like;
UIInputWindowController
…

Neco
- 55
- 1
- 1
- 5
1
vote
1 answer
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 controller i am calling an API of Post Method to add…

Taimoor Arif
- 750
- 3
- 19
1
vote
4 answers
iOS - viewDidAppear: delayed when showing a UITableView
I'm having a weird problem. I have a Tab Bar application, in it I'm using a Navigation Controller for each of the different tabs and each Navigation Controller has it's own View Controller to display some content.
When I touch a tab I want the tab…

Peter Warbo
- 11,136
- 14
- 98
- 193
1
vote
1 answer
viewDidAppear called BEFORE it actually appears?
I know that this question sounds similar to this, but I am already aware of the work around. This is more of an analysis question.
The above link is a question specific to UITabBarController, but I also observed the behavior with…

Sailesh
- 25,517
- 4
- 34
- 47
1
vote
1 answer
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 second hour the view color does not change from…
user7763839
1
vote
1 answer
Presenting View Controller is too slow
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.viewDidLoad()
…

Jan Swoboda
- 152
- 2
- 15
1
vote
0 answers
Swift UITableView cellForRowAt indexPath doesn't get called on tableView.reloadData() after view appeared for second time
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 switch forth and back with other viewControllers,…

Melih Alan
- 79
- 1
- 9