UIViewController instance method that notifies the view controller that its view was added to a view hierarchy.
Questions tagged [viewdidappear]
261 questions
0
votes
1 answer
Taking Screen Shot of App to Use During Animation
I'm trying to cover up some changes that take place in my view during the transition between viewWillAppear and viewDidAppear and would like to take a screen shot during or immediately before viewWillDisappear and then display it during…

Jackson Egan
- 2,715
- 4
- 18
- 26
0
votes
1 answer
Can you nest an IBAction (button) inside of -(void)viewDidAppear:(BOOL)animated? How?
I determined I need my button action (findMe) to be a part of viewDidAppear and cannot have it as an individual IBAction because it has showsUserLocation errors.
A: is this even possible?
B: does it make any sense to do that?
C: What would it look…

Greg
- 276
- 1
- 3
- 25
0
votes
1 answer
iOS message sent to deallocated instance
I am kinda stumped here. I have a UIModalPresentationFormSheet and I have added a gesture recognizer to handle dismissing the form sheet if the user selects anywhere outside the form sheet. I also have a cancel button in the navbar at the top of the…

Jon Erickson
- 1,876
- 4
- 30
- 73
0
votes
2 answers
iOS programming: customized buttons in viewDidAppear
I created regular buttons in .xib file and I added a gradient effect to them and shadows in the code in this section:
-(void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
... my customized buttons code here
}
When I modally…

Darko
- 203
- 2
- 10
0
votes
3 answers
ios UI unresponsive during viewdidappear
I have a table view, and when the user selects a row, i push them to a new ViewController. At first, I initialized all my view objects in the ViewDidLoad method (involving web service calls) but I saw that it made the transition from my tableview to…

user1467188
- 617
- 1
- 10
- 28
0
votes
1 answer
Switch View with animation
I must change a view. In a view I've a button with this code:
FormazioneViewController *formazioneC = [[FormazioneViewController alloc] initWithNibName:@"FormazioneView" bundle:nil];
self.formazioneViewController= formazioneC;
[UIView…

Andrea Barbieri
- 1
- 2
0
votes
1 answer
Irregular behavior using the viewDidAppear and viewDidLoad methods
I am trying to update some of my views when they appear, so I naturally found myself using the viewDidAppear: and viewWillAppear: methods. However, I have experienced two problems with using these methods:
When I only implement one of the methods,…

bgottlob
- 527
- 2
- 6
- 14
-1
votes
0 answers
Diferent sizes in viewDidAppear and viewDidLayoutSubviews
I'm changing the sizes of two buttons in the viewDidLayoutSubviews and they have the same size but when I try the aplication the size had changed, I printed the sizes in the viewDidLayoutSubViews and they have the same size but when I print the size…

Victor
- 9
- 2
-1
votes
1 answer
Swift - Detect when certain table section comes into view
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?
I have tried all over Google but not getting the results…

Yiags1978
- 19
- 3
-1
votes
1 answer
[Swift]: Appending NEW ITEMS ONLY to local Arrays for TableView after dismissing Previous View Controller via ViewDidAppear()
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 PostDataViewController which I segue to post new…

magellan
- 63
- 7
-1
votes
1 answer
How to remember a ViewController's last activity when returning to it?
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 click on list #2 and navigate to any of the…

Aaron Coronado
- 57
- 1
- 7
-1
votes
2 answers
Boolean Variable's value not change dismissViewControllerAnimated From Child to Parent in Storyboard
I am not a beginner but I can't figure out this silly issue. I have Two View Controllers For Example Parent and Child are classes. Parent is a base class and child is a sub class But I can't Inherited any data except these bool.
In Parent Class I…

Mihir Oza
- 2,768
- 3
- 35
- 61
-1
votes
1 answer
Reload Form using func viewDidAppear
I'm having a problem to perform this action in Swift
override func viewDidAppear (animated: Bool) {
toDoListTable.reloadData ()
}
I'm having the following error: Fatal error: unexpectedly found nil while unwrapping an Optional value
(LLDB)
how…

Bruno Bafilli
- 103
- 1
-1
votes
1 answer
How to show custom subviews in viewDidAppear both in portrait and landscape mode only once when the app is launched for the first time?
I have few help tips which are custom subviews which I want to show both in portrait and landscape mode when the app is launched for the first time. Next time the app is launched they don't show up. I want to do this in viewDidAppear method. I wrote…

pogbamessi
- 311
- 3
- 17
-1
votes
1 answer
how to make my win label stay hidden until the user win?
am trying to make my label hidden by changing the x and y parameter but when i start playing the game and on the first click suddenly the label appear i tried the alpha way and all the other way to hide a label were fine except this one.
this my…

lapacino
- 171
- 1
- 5
- 15