IT Nursery
I’m using Xcode 8.0 beta 4. In previous version, UIViewController have method to set the status bar style public func preferredStatusBarStyle() -> UIStatusBarStyle However, I found it changed to...
  • May 31, 2022
  • 0 Comments
I can’t seem to get the top most UIViewController without access to a UINavigationController. Here is what I have so far: UIApplication.sharedApplication().keyWindow?.rootViewController?.presentViewController(vc, animated: true, completion: nil) However, it does...
  • May 25, 2022
  • 0 Comments
Is it possible to cancel a segue in the prepareForSegue: method? I want to perform some check before the segue, and if the condition is not true (in this...
  • May 21, 2022
  • 0 Comments