TabbarViewController
Rotate TabbarViewController
Install / Use
/learn @bionelabs/TabbarViewControllerREADME
TabbarViewController
Rotate TabbarViewController
Demo
<img src="https://github.com/onebuffer/TabbarViewController/blob/master/Resources/Screen%20Shot%202020-05-31%20at%2012.32.51.png" width="30%"> <img src="https://github.com/onebuffer/TabbarViewController/blob/master/Resources/Screen%20Shot%202020-05-31%20at%2012.33.07.png" width="80%"> <img src="https://github.com/onebuffer/TabbarViewController/blob/master/Resources/Screen%20Shot%202020-05-31%20at%2012.33.16.png" width="80%">Installation
CocoaPods
Soon
How to use
import UIKit
import TabbarViewController
class ViewController: TabbarViewController {
let ViewControllerA = MenuViewController()
let ViewControllerB = MenuViewController()
let ViewControllerC = MenuViewController()
let ViewControllerD = MenuViewController()
let ViewControllerE = MenuViewController()
override func loadView() {
super.loadView()
ViewControllerA.tabBarItem = UITabBarItem(
title: "Home",
image: UIImage(named:"home"),
selectedImage: nil)
ViewControllerB.tabBarItem = UITabBarItem(
title: "Media",
image: UIImage(named:"backup-media"),
selectedImage: nil)
ViewControllerC.tabBarItem = UITabBarItem(
title: "Reminder",
image: UIImage(named:"reminder"),
selectedImage: nil)
ViewControllerD.tabBarItem = UITabBarItem(
title: "Setting",
image: UIImage(named:"tabbar-setting"),
selectedImage: nil)
ViewControllerE.tabBarItem = UITabBarItem(
title: "Podcast",
image: UIImage(named:"tabbar-setting"),
selectedImage: nil)
ViewControllerA.view.backgroundColor = UIColor("F6F9FE")
ViewControllerB.view.backgroundColor = UIColor("b1cbf6")
ViewControllerC.view.backgroundColor = UIColor("c8daf9")
ViewControllerD.view.backgroundColor = UIColor("dfeafb")
ViewControllerE.view.backgroundColor = UIColor("ffffff")
self.viewControllers = [ViewControllerA,
ViewControllerB,
ViewControllerC,
ViewControllerD]
}
}
Contact
- Email: caophuocthanh@gmail.com
- Site: https://onebuffer.com
- Linkedin: https://www.linkedin.com/in/caophuocthanh/
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
