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 by code

Show and Hide Bottom set in interface builder
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?

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容