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
iphone ViewDidAppear in SubViews?
I have a View "A", which loads a subview "B" which loads a subview "C"
Why does the ViewDidAppear event fire for "A" but not for "B" or "C"
ViewDidLoad does fire for A,B,C

Ian Vink
- 66,960
- 104
- 341
- 555
0
votes
4 answers
Problem with iPhone shakes: viewDidAppear isn't called when loading viewController
I'm trying to detect a shake on the iPhone device, so for what i've read I need to set my view controller as first responder on the viewDidAppear method. This method is supposed to be called automatically, but for some reason this method is never…

fede
- 58
- 1
- 7
0
votes
3 answers
Strange behaviour of animation in viewDidAppear
I am doing a simple call to a method with animation in viewDidApepar in my app, the initial position of the view that is being animated in the storyboard is (10 , 5) - almost hidden from the main view.
-(void)viewDidAppear:(BOOL)animated{
[super…

EmilDo
- 1,177
- 3
- 16
- 33
0
votes
2 answers
UIPickerView not loading from viewDidAppear
I have a UIPickerview, which I was initially setting from viewDidLoad. It was working perfectly fine.
But I want it to refresh it everytime I come back from another view, so I put in viewDidAppear
- (void)viewDidAppear:(BOOL)animated {
[super…

rbk
- 283
- 2
- 3
- 16
0
votes
1 answer
viewdidappear not getting called when canceling UIImagePicker
After I cancel the image picker, the viewWillAppear gets called but the viewDidAppear does not get called. And subsequent loading of that view by going up and back down the stack does not help it.
Only if I switch to another Tab and then switch…

Mehdi
- 772
- 7
- 16
0
votes
2 answers
Method called only in viewDidApper but not in viewDidLoad, why?
I created a method that sets the title of a button based on a value.
This method needs to be called when opening the viewController and maybe refreshed when the controller appears again.
So i created the method and I called that method in…

Gualty
- 251
- 1
- 4
- 13
0
votes
1 answer
Why ViewDidApper and ViewWillApper are not always called?
I have a method that sets the height of a UIScrollView and a UITextView based on the content of the UITextView. I realized that both, textview and scrollview are correctly resized when the method is call from viewWillAppear but not from viewDidLoad…

nabrugir
- 1,839
- 2
- 22
- 38
0
votes
1 answer
How to get the controller which executed the presentViewController
I have UINavigationController with 3 views. In case the session with the server is expired then I launch(with the presentViewController) a second navigation controller which ask the user to login. If the login was successful then I dismiss the login…

BlackM
- 3,927
- 8
- 39
- 69
0
votes
0 answers
Fires presentedViewController several times
-(void) viewDidAppear:(BOOL)animated {
if (!self.hasPresentedModalMenuView) {
NSLog(@"Firing");
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"highScoresStory" bundle:nil];
UIViewController *vc = [storyboard…

user3249418
- 1
- 4
0
votes
1 answer
Why UIScrollView can not scroll once dragging UIButton or UILabel from storyboard
I got the same issue here
The UIScrollView can scroll when adding button or label via code, but failed when adding from the storyboard or xib.
Setting the contentSize from the viewDidAppear can resolve this issue.
Set up the contentSize from…

Forrest
- 122,703
- 20
- 73
- 107
0
votes
1 answer
After iPad is unplugged from Mac the animation called in viewDidAppear doesn't happen
My app's code workflow goes as follows: viewDidLoad->viewDidAppear->create subview->animate subview
The animation makes the subview go from a transformation of extremely small to the size that it should be, giving it an effect similar to a UIAlert…

Louie Bertoncin
- 3,744
- 2
- 25
- 28
0
votes
1 answer
viewDidAppear being called before WebService connection methods
ViewDidAppear method I put breakpoint in the last step of the operation, but the breakpoint viewDidAppear method of putting at first, trying to run it directly.
Are emerging in connection using WebService. Be the first breakpoint while running…

Burak Benli
- 11
- 3
0
votes
1 answer
viewDidAppear presence in code messes with layout
I have encountered some seriously odd situation.
I have a code looking like this:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
return…

Michal
- 15,429
- 10
- 73
- 104
0
votes
0 answers
UIView partially loaded from xib in viewDidLoad
In my controller I'm loading all its content programmatically inside the viewDidLoad method, and everything has always worked just fine.
However I'm implementing a new feature which is just a view to show at a certain point, and I decided, in order…

dev_mush
- 2,136
- 3
- 22
- 38
0
votes
1 answer
Overriding viewDidAppear and have it load specific URL not OK?
I'm reviewing someone else's code and noticed a web form gets refreshed every time you attach an image(click 'add image', find and choose image, return to form, form goes blank). And, it's because the url gets reloaded. In tracking this issue down…

jcarpio
- 3,350
- 5
- 23
- 22