Skip to content

Example project for disabling rotation on certain ViewControllers in custom UINavigationController

Notifications You must be signed in to change notification settings

hungrxyz/DontRotateSwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Marko Žél
Dec 8, 2015
dcf6244 · Dec 8, 2015

History

5 Commits
Dec 8, 2015
Dec 8, 2015
Dec 8, 2015

Repository files navigation

DontRotateSwift

Example project for disabling rotation on certain ViewControllers in custom UINavigationController

Linked to this SO Question

dontrotategif

Key parts:

  • Custom UINavigationController class assigned in Storyboard
  • Check if this ViewController is the one you want to disable roration on
  if topViewController!.isKindOfClass(ViewController) {
  // If true return false to disable it
    return false
  }

About

Example project for disabling rotation on certain ViewControllers in custom UINavigationController

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages