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
How to load a view before pushing it in SWIFT?
I have a table view controller, when I press a cell, I load some data before displaying the view. When data are loaded, I push the view.
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
var post :…

cmii
- 3,556
- 8
- 38
- 69
0
votes
2 answers
Receiver () has no segue with identifier 'showAlerting''
The segue runs but the app crashes with the above error. Why do I get this no segue with identifier message? I defined the segue Identifier.
Here is the viewDidAppear method
- (void)viewDidAppear:(BOOL)animated
{
[self…

Jack Shultz
- 2,031
- 2
- 30
- 53
0
votes
1 answer
iOS - UIScrollView setContentSize in separate method
I have a UIScrollView that works perfectly when I set its content size in the viewDidAppear method, just like this:
-(void)viewDidAppear:(BOOL)animated{
[scrollView setScrollEnabled:YES];
[scrollView setContentSize:CGSizeMake(320,…

el-flor
- 1,466
- 3
- 18
- 39
0
votes
0 answers
labels blank after view controller is programmatically instantiated
I have a new view controller that gets instantiated from the app delegate when a push notification is received. In the view controller's header file, I have an NSDictionary created, and I set it the value of the dictionary to be the userInfo in the…

madgrand
- 121
- 1
- 8
0
votes
2 answers
ViewDidAppear more faster
I have a UItextview where I can write inside and with a Data Class I can give the data anywhere in my Views, In the ViewDidAppear function I pass my data but It is a little bit slow. The text appear after 0.2-0.3 second, How I can solve that…
user4385051
0
votes
1 answer
CGAffineTransformation not rendering on view did load
I wrote this class to create a dynamically sized (Kinda like a SVG but in Swift) logo (As a UIView subclass). It works perfectly if i add it to my View Controller's view's subviews in View Did Appear... but it will not work if I add it in View did…

MingMan
- 911
- 1
- 10
- 31
0
votes
1 answer
Why is GLKView's drawableWidth and drawableHeight not set in viewDidAppear?
I have delayed accessing view.drawableHeight until viewDidAppear, but ever so often ( one in 3 times approximately) the drawableHeight and drawableWidth are both 0. The view.frame shows correctly.
view.drawableHeight
(NSInteger) $3 =…

nishant
- 736
- 1
- 12
- 22
0
votes
2 answers
Swift - ViewDidAppear called from another class
I have a simple application with two views. When I launch to the home view the viewDidLoad and viewDidAppear are called. When I go to another view in my application it calls super.viewDidLoad and calls the func, but it also calls viewDidAppear from…

Marcus
- 9,032
- 11
- 45
- 84
0
votes
1 answer
iOS 8 viewDidAppear called before appWillBecomeActive?
I'm just experiencing something weird and it seems to be a change in iOS 8.
Previously(iOS7) when testing appWillBecomeActive was called before viewDidAppear. Is it so that in iOS 8 it is the other way around? what would then be a good workaround in…

suMi
- 1,536
- 1
- 17
- 30
0
votes
1 answer
Different behaviour in iOS 7 and iOS 8 on -(void)viewDidAppear:(BOOL)animated on Partial Curl VC
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
//Reset all NSUserDefaults values
}
My app was previously working fine in iOS 7 but after upgraded to iOS 8, it is no longer working.
This is happening in my parent VC…

TPG
- 2,811
- 1
- 31
- 52
0
votes
2 answers
Why the controller's class method aren't get called when the app become active from background?
when I share something with my app, it get called by
-(BOOL) application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{to get the content shared with it. After that, i…

Alessio Crestani
- 1,602
- 4
- 17
- 38
0
votes
1 answer
View components change location after initialization in viewDidAppear
I have a simple screen with a tableView and a searchBar. It was fine until I used viewDidAppear. Now as I use this method, components behaves unexpectedly.
For Example:
UISegmentedControll does not appear untill I swap on screen (I have…

iBug
- 2,334
- 3
- 32
- 65
0
votes
2 answers
Transition from One view controller to another - UI Update
Lets say I have two viewcontrollers A and B. From A to B, I add the viewcontroller B on top of A. On popping, I call the following method in B
-(void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
NSUserDefaults…

Siddharthan Asokan
- 4,321
- 11
- 44
- 80
0
votes
1 answer
Using viewdeck, while closing leftView chenterView appears but but not reloaded
I'm using ViewDeck library to use side panel functionality and it works fine. My application needs the centerViewController to be reloaded while I click some button from LeftViewController.
and it should be reloaded after appearing the…

SoumiMaiti
- 91
- 10
0
votes
1 answer
iOS - Is it possible for a container view to receive appearance methods/callbacks instead of the child views?
I am trying to create a global call for all child views of a container view when the view appears.
Situation:
App is sent to background. In AppDelegate a User Default gets set to
TRUE.
App is re-opened by user. Container view checks (in…

JimmyJammed
- 9,598
- 19
- 79
- 146