iOSSwift学习GeekBand

Show and Hide Bottom Toolbar in

2015-08-12  本文已影响147人  d30d9e0626b0

视频地址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 codeShow and Hide Bottom by code
Show and Hide Bottom set in interface builderShow 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?

上一篇 下一篇

猜你喜欢

热点阅读