Show and Hide Bottom Toolbar in Swift - Xcode 6 iOS 8 Tutorial

视频地址https://www.youtube.com/embed/zlZLjQN-kTc

Video Tutorial

  1. Add first View Controller Segue to new View Controller
  2. Add Bar Button Item on first View Controller and set target-action
  3. code in action:method add self.porformSegueWithIdentifier
  4. setToolbarHidden(_ hidden: Bool, animated animated: Bool)
  5. Or set in interface builder
Show and Hide Bottom by code

Show and Hide Bottom set in interface builder

Demo Project on GitHub

More in Segue

Simpler way:

Adding a Segue Between Scenes in a Storyboard

Another way:View Controller segue to View Controller,
your can something more in target-action method.

IOS7, Segue and storyboards - How to create without a button?

你可能感兴趣的:(Show and Hide Bottom Toolbar in Swift - Xcode 6 iOS 8 Tutorial)