Menu
  • HOME
  • TAGS

Swift - ViewDidAppear called from another class

ios,xcode,swift,viewdidload,viewdidappear

As you mentioned, 'home' is the super class of your 'detail' view controller " deatailview super (aka home) ". You either haven't implemented the viewDidAppear or called super.viewDidAppear in the 'detail' vc , hence the superclass' (home vc's) viewDidAppear is executed.

Why is GLKView's drawableWidth and drawableHeight not set in viewDidAppear?

ios,uiview,glkit,viewdidappear

First, don't trust the simulator for anything GL/GPU-related. (Basic prototyping GL code, maybe. But for details of something you expect to ship, always check a device.) Drawable width and height refer to the size of the GL framebuffer managed by the view. And good drawing code on iOS doesn't allocate...

Swift - Reload UIPageViewController with new information in viewDidAppear

ios,swift,reload,uipageviewcontroller,viewdidappear

If you want to reload the ViewControllers inside the UIPageViewController, just re-set them with: self.setViewControllers(<#viewControllers: [AnyObject]!#>, direction: <#UIPageViewControllerNavigationDirection#>, animated: <#Bool#>, completion: <#((Bool) -> Void)!##(Bool) -> Void#>) if you are going to update your viewControllers from inside an viewController, you have to call it this way: override func viewDidAppear(animated: Bool) {...

viewWillAppear and viewDidAppear not called while viewDidLoad called when something is in the UIViewController

ios,objective-c,uiviewcontroller,viewwillappear,viewdidappear

Removing the whole Storyboard and redoing it solved the problem.

How to detect the closing of the NofiticationCenter in Swift / Xcode?

ios,swift,nsnotificationcenter,viewdidload,viewdidappear

While the notification center was present, the app was never in the background, so it does not come to the foreground when the notification center is dismissed - and so there is no UIApplicationWillEnterForegroundNotification. The app is activated, not foregrounded. Watch for UIApplicationDidBecomeActiveNotification instead.

Frame change of table view cell's subview won't take place until view did appear

ios,uitableview,swift,frame,viewdidappear

If you used autoLayout check if it's creating the constraints automatically. If yes, then you can change the constants of these constraints instead. If you are not using autoLayout, call layoutIfNeeded and see if that changes anything. My bet though is on autoLayout creating constraints automatically.

ViewDidAppear more faster

ios,swift,uitextview,viewdidappear

Doing some diagnostics offline, we concluded that the delay in question was really just the standard delay as you switch from one tab to another, and was nothing exceptional. This delay was exacerbated because we were observing the UX via the simulator rather than a real device. So, a couple...

Strange behaviour of animation in viewDidAppear

ios,uiviewanimation,viewdidappear

Replace -(void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; [self doTheAnimation]; } with -(void) viewDidLayoutSubviews{ [super viewDidLayoutSubviews]; [self doTheAnimation]; } ...