Questions tagged [viewdidappear]

UIViewController instance method that notifies the view controller that its view was added to a view hierarchy.

261 questions
-1
votes
1 answer

set UIView Frame in viewDidAppear, to solve frame issues in iPad for Launch orientation mode Landscape

I am launching my app (iPhone and iPand) in landscape mode. I found that frame for iPad frame changes in viewDidAppear , than the one in viewWillAppear. IOS IPAD 5.1 simulator In viewWillAppear it is 0.000000 20.000000 768.000000 1004.000000. while…
NNikN
  • 3,720
  • 6
  • 44
  • 86
-2
votes
1 answer

Same optional value is sometimes nil and sometimes not

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 selectedRecipeIndex = recipe.firstIndex(where: {$0.docID ==…
amirbt17
  • 533
  • 1
  • 4
  • 13
-2
votes
1 answer

ViewDidAppear animation false

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: Bool) { super.viewDidAppear(animated =…
Nur II
  • 173
  • 1
  • 2
  • 16
-2
votes
2 answers

Swift Slider Value Keeps Changing Back to StoryBoard Value

I am trying to create a slider such that at the initial load of the app, the slider has a default value, say 5. But if I were to change the slider value to 10, and leave the VC and come back, I would like the value to be 10. I have tried…
Kevin
  • 1,189
  • 2
  • 17
  • 44
-2
votes
1 answer

My NSString object is not being updated until I leave my main viewController and go back?

I have been trying to figure this out for the last couple of hours and still cannot figure it out or find anything related that might help me out. I have a method showFriendRequestData and this method makes a server call to get a JSON response. I…
-2
votes
1 answer

ViewDidAppear is not being called

I'm using a delegate UITabbarController with transition animation like this: -(BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController { NSArray *tabViewControllers =…
Joran Den Houting
  • 3,149
  • 3
  • 21
  • 51
1 2 3
17
18