Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ChenYilong/CYLTabBarController
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenYilong committed Apr 18, 2019
2 parents 139c7b8 + c566ffb commit f80aade
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 10 deletions.
38 changes: 35 additions & 3 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,39 @@

![enter image description here](http://i68.tinypic.com/ifyhoo.jpg)

----------


<p align="center">
<a href="https://github.com/ChenYilong/CYLTabBarController/blob/master/CYLTabBarController.podspec"><img src="https://img.shields.io/badge/Pod-GetLatestVersion-green.svg?style=flat"></a>
<a href=""><img src="https://img.shields.io/badge/Swift-compatible-orange.svg"></a>
<a href=""><img src="https://img.shields.io/badge/platform-iOS%208.0%2B-ff69b5152950834.svg"></a>
<a href="https://github.com/ChenYilong/CYLTabBarController/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat"></a>
</p>

<p align="center">
<a href="https://github.com/ChenYilong/iOSBlog/issues/21"><img src="https://img.shields.io/static/v1.svg?label=Consider%20donating!&color=blue&message=%E7%82%B9%E5%87%BB%E6%8D%90%E8%B5%A0&color=green"></a>
</p>


<p align="center">
<a href="https://twitter.com/stevechen1010"><img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social&maxAge=2592000"></a>
<a href="http://weibo.com/luohanchenyilong"><img src="http://i67.tinypic.com/wbulbr.jpg"></a>
</a><a href="https://t.me/CYLTabBarController"><img src="http://i66.tinypic.com/of2hbn.jpg"></a></a>
</p>

----------


## Base Info for this issue

<!--- 基本信息 -->

<!--- 每个类的第五行都标记有版本号,请贴出。 -->

1. Version:v1.17.x
2. Language:Objective-C
4. iOS System Version:iOS10
1. Version:Latest Version as [here](https://github.com/ChenYilong/CYLTabBarController/blob/master/CYLTabBarController.podspec)
2. Language of App :Objective-C/Swift
4. iOS System Version:iOS12
5. Prototype(是否是真机):YES
6. Issue Type:Crash、Bug、Enhancement(希望能支持一个新需求)、Q-A

Expand All @@ -26,3 +53,8 @@





----------

<p align="center"><a href="http://weibo.com/u/1692391497?s=6uyXnP" target="_blank"><img border="0" src="http://service.t.sina.com.cn/widget/qmd/1692391497/b46c844b/1.png"/></a></a>
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
![enter image description here](http://i68.tinypic.com/ifyhoo.jpg)

# [CN]CYLTabBarController【低耦合集成TabBarController】
# [EN]CYLTabBarController [Low coupling]
# [CN]CYLTabBarController【一行代码实现 Lottie 动画 TabBar】
# [EN]CYLTabBarController [An animated tabBar supported by Lottie with one line of code]


<p align="center">
<a href=""><img src="https://img.shields.io/badge/pod-v1.21.x-brightgreen.svg"></a>
<a href="https://github.com/ChenYilong/CYLTabBarController/blob/master/CYLTabBarController.podspec"><img src="https://img.shields.io/badge/Pod-GetLatestVersion-green.svg?style=flat"></a>
<a href=""><img src="https://img.shields.io/badge/Swift-compatible-orange.svg"></a>
<a href=""><img src="https://img.shields.io/badge/platform-iOS%207.0%2B-ff69b5152950834.svg"></a>
<a href=""><img src="https://img.shields.io/badge/platform-iOS%208.0%2B-ff69b5152950834.svg"></a>
<a href="https://github.com/ChenYilong/CYLTabBarController/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat"></a>
<a href="https://github.com/ChenYilong/iOSBlog/issues/21"><img src="https://img.shields.io/static/v1.svg?label=Consider%20donating!&color=blue&message=%E7%82%B9%E5%87%BB%E6%8D%90%E8%B5%A0&color=green"></a>

</p>

<p align="center">
<a href="https://twitter.com/stevechen1010"><img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social&maxAge=2592000"></a>
<a href="http://weibo.com/luohanchenyilong"><img src="http://i67.tinypic.com/wbulbr.jpg"></a>
Expand Down Expand Up @@ -56,18 +60,18 @@


## 与其他自定义TabBarController的区别
## Comparetion with
## Comparetion with other Libraries

[CN]特点 </p>[EN]Features |[CN]解释 </p>[EN]Explanation
-------------|-------------
:-------------:|:-------------:
[CN]一行代码支持Lottie动画TabBar样式 </p> [EN] It only needs one line of code to have an animated TabBar with Lottie. |[CN][使用方法]( https://github.com/ChenYilong/CYLTabBarController/issues/341) </p> [EN][How to add animation of Lottie with one line of code.]( https://github.com/ChenYilong/CYLTabBarController/issues/341) </p> ![enter image description here](http://i66.tinypic.com/25oxkqo.jpg) </p> ![enter image description here](http://i64.tinypic.com/2h835ae.jpg)
[CN]低耦合,易删除</p>[EN]Loose coupling | [CN]1、TabBar设置与业务完全分离,最低只需传两个数组即可完成主流App框架搭建。</p>[EN]1. This library is independent of your business codes which only needs two array parameters to be passed. </p> [CN]2、 PlusButton 的所有设置都在单独的一个类( `CYLPlusButton` 的子类)中实现:删除该特定的类,就能完全将 PlusButton 从项目中删除掉。</p>[EN]2.PlusButton is also independent. If you delete the code of this class, you remove the PlusButton feature from your UI on screen completely.
[CN]`TabBar` 以及 `TabBar` 内的 `TabBarItem` 均使用系统原生的控件</p>[EN]`TabBar` and `TabBarItem` those parts of this library both are system objects. | [CN]因为使用原生的控件,并非 `UIButton` 或 `UIView` 。好处如下:</p>[EN]Advantages of quitting choosing `UIButton` or `UIView`: </p> 1. 无需反复调“间距位置等”来接近系统效果。</p>[EN]There is not need to adjust those object to make them close to a system object appearance. </p> 2. 在push到下一页时 `TabBar` 的隐藏和显示之间的过渡效果跟系统一致(详见“ [集成后的效果](https://github.com/ChenYilong/CYLTabBarController#集成后的效果) ”部分,给出了效果图)</p>[EN]2. A push animation is same to a system objects appearance. </p> 3. 原生控件,所以可以使用诸多系统API,比如:可以使用 ` [UITabBar appearance];` 、` [UITabBarItem appearance];` 设置样式。(详见“[补充说明](https://github.com/ChenYilong/CYLTabBarController#补充说明) ”部分,给出了响应代码示例)</p>[EN]3.It is convenient to use the system API such as ` [UITabBar appearance];`,` [UITabBarItem appearance];`, etc.
自动监测是否需要添加“加号”按钮,</p>并能自动设置位置</p>[EN] It is able to check if need to add a PlusButton automatically. |[CYLTabBarController](https://github.com/ChenYilong/CYLTabBarController) 既支持类似微信的“中规中矩”的 `TabBarController` 样式,并且默认就是微信这种样式,同时又支持类似“微博”或“淘宝闲鱼”这种具有不规则加号按钮的 `TabBarController` 。想支持这种样式,只需自定义一个加号按钮,[CYLTabBarController](https://github.com/ChenYilong/CYLTabBarController) 能检测到它的存在并自动将 `tabBar` 排序好,无需多余操作,并且也预留了一定接口来满足自定义需求。</p>“加号”按钮的样式、frame均在自定义的类中独立实现,不会涉及tabbar相关设置。
支持动态更新 | 可动态删除PlusButton ,可以动态更新样式 </p> ![enter image description here](http://i63.tinypic.com/208ba7a.jpg)
即使加号按钮超出了tabbar的区域,</p>超出部分依然能响应点击事件 | 红线内的区域均能响应tabbar相关的点击事件,</p>![enter image description here](http://i57.tinypic.com/2r7ndzk.jpg)
允许指定加号按钮位置 | 效果如下:</p>![enter image description here](http://a64.tinypic.com/2mo0h.jpg) </p>Airbnb-app效果:</p>![enter image description here](http://a63.tinypic.com/2mgk02v.gif)
支持让 `TabBarItem` 仅显示图标,并自动使图标垂直居中,支持自定义TabBar高度 | 效果可见Airbnb-app效果,或者下图</p>![enter image description here](https://cloud.githubusercontent.com/assets/7238866/10777333/5d7811c8-7d55-11e5-88be-8cb11bbeaf90.png)
支持自定义动画 | 兼容 Lottie 动画 用法见:https://github.com/ChenYilong/CYLTabBarController/issues/341 </p> ![enter image description here](http://i64.tinypic.com/2h835ae.jpg) </p> ![](https://ww1.sinaimg.cn/large/006tNbRwly1fg9hu6qnwbg308v0gctcc.gif)
支持角标自定义View | ![enter image description here](https://ws4.sinaimg.cn/large/006tKfTcly1fgl0yxcaboj30yi06at8t.jpg)
支持多TabBar嵌套,并指定PlusButton位置 | ![enter image description here](https://ws4.sinaimg.cn/large/006tNc79ly1fmn3005isfg308r0iltl6.gif)
支持CocoaPods |容易集成
Expand Down

0 comments on commit f80aade

Please sign in to comment.