STTabbar
所属分类:图形图象
开发工具:Swift
文件大小:0KB
下载次数:0
上传日期:2020-06-19 10:06:29
上 传 者:
sh-1993
说明: UITabbar上的一个子类,提供允许您使用凸起的中心按钮和弯曲的选项卡层自定义UITabbbar的形状。,
(A subclass on UITabbar that provides allows you to customize the shape of UITabbar with a raised center button and curved tabbar layer.,)
文件列表:
.travis.yml (547, 2020-06-19)
Example/ (0, 2020-06-19)
Example/Podfile (152, 2020-06-19)
Example/Podfile.lock (264, 2020-06-19)
Example/Pods/ (0, 2020-06-19)
Example/Pods/Local Podspecs/ (0, 2020-06-19)
Example/Pods/Local Podspecs/STTabbar.podspec.json (603, 2020-06-19)
Example/Pods/Manifest.lock (264, 2020-06-19)
Example/Pods/Pods.xcodeproj/ (0, 2020-06-19)
Example/Pods/Pods.xcodeproj/project.pbxproj (37369, 2020-06-19)
Example/Pods/Pods.xcodeproj/project.xcworkspace/ (0, 2020-06-19)
Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata (135, 2020-06-19)
Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/ (0, 2020-06-19)
Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (238, 2020-06-19)
Example/Pods/Target Support Files/ (0, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/ (0, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/Pods-STTabbar_Example-Info.plist (828, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/Pods-STTabbar_Example-acknowledgements.markdown (1232, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/Pods-STTabbar_Example-acknowledgements.plist (2111, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/Pods-STTabbar_Example-dummy.m (146, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/Pods-STTabbar_Example-frameworks.sh (8759, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/Pods-STTabbar_Example-umbrella.h (334, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/Pods-STTabbar_Example.debug.xcconfig (716, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/Pods-STTabbar_Example.modulemap (132, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Example/Pods-STTabbar_Example.release.xcconfig (716, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Tests/ (0, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Tests/Pods-STTabbar_Tests-Info.plist (828, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Tests/Pods-STTabbar_Tests-acknowledgements.markdown (133, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Tests/Pods-STTabbar_Tests-acknowledgements.plist (805, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Tests/Pods-STTabbar_Tests-dummy.m (142, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Tests/Pods-STTabbar_Tests-umbrella.h (330, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Tests/Pods-STTabbar_Tests.debug.xcconfig (531, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Tests/Pods-STTabbar_Tests.modulemap (128, 2020-06-19)
Example/Pods/Target Support Files/Pods-STTabbar_Tests/Pods-STTabbar_Tests.release.xcconfig (531, 2020-06-19)
Example/Pods/Target Support Files/STTabbar/ (0, 2020-06-19)
Example/Pods/Target Support Files/STTabbar/STTabbar-Info.plist (828, 2020-06-19)
Example/Pods/Target Support Files/STTabbar/STTabbar-dummy.m (120, 2020-06-19)
Example/Pods/Target Support Files/STTabbar/STTabbar-prefix.pch (195, 2020-06-19)
Example/Pods/Target Support Files/STTabbar/STTabbar-umbrella.h (308, 2020-06-19)
... ...
# STTabbar
[![CI Status](https://img.shields.io/travis/11Shraddha/STTabbar.svg?style=flat)](https://travis-ci.org/11Shraddha/STTabbar)
[![Version](https://img.shields.io/cocoapods/v/STTabbar.svg?style=flat)](https://cocoapods.org/pods/STTabbar)
[![License](https://img.shields.io/cocoapods/l/STTabbar.svg?style=flat)](https://cocoapods.org/pods/STTabbar)
[![Platform](https://img.shields.io/cocoapods/p/STTabbar.svg?style=flat)](https://cocoapods.org/pods/STTabbar)
A subclass on UITabbar that provides allows you to customize a shape of UITabbar with raised center button. You can change appearance of tabbar according to your needs.
![alt tag](https://github.com/11Shraddha/STTabbar/blob/master/Tabbar_GIF.gif)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
iOS 10.0+
Xcode 10.0+
Swift 4.2+
## Installation
STTabbar is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'STTabbar'
```
## Usage
1. Setup Stoaryboard. Add UITabbarViewcontroller in the storyboard.
2. Craete custom TabbarController class using below code.
```Swift
class CustomTabViewController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
if let myTabbar = tabBar as? STTabbar {
myTabbar.centerButtonActionHandler = {
print("Center Button Tapped")
}
}
}
}
```
3. Go to stoaryboard and change UITabBarController class to CustomTabViewController.
![alt tag](https://github.com/11Shraddha/STTabbar/blob/master/TabbarVCClass.png)
4. Also change UItabBar class to STTabbar.
![alt tag](https://github.com/11Shraddha/STTabbar/blob/master/Tabbarclass.png)
## Author
11Shraddha, shraddhasojitra11@gmail.com
## License
STTabbar is available under the MIT license. See the LICENSE file for more info.
近期下载者:
相关文件:
收藏者: