Giter Club home page Giter Club logo

yptabbarcontroller's Introduction

YPTabBarController

一款功能十分强大TabBarController,几乎你所能想到的关于TabBar的需求,它都能实现。

##安装方法: pod 'YPTabBarController'
或者,
直接将YPTabBarController文件夹拖入工程。

##功能介绍: 功能强大的自定义TabBarController,可以自定义:

  1. 替代系统的UITabBarController,以下属性均可自定义:
    a) TabBar:位置、大小、边框、圆角、分割线、内容支持滚动等;
    b) TabItem:图像、选中背景、title字体、title颜色等,均包含选中和未选中两种状态;
    c) Badge:支持数字badge和小圆点badge,可自定义:位置、大小、背景颜色、背景图像、badge title字体、badge title颜色等;
  2. 替代系统的UISegmentControl,且功能更加强大;
  3. 仿网易、搜狐等新闻客户端的可滑动的内容视图和TabBar,支持滑动内容视图时,对应TabItem的字体、颜色、选中背景跟随内容视图的滚动进行平滑渐变切换;
  4. 多个代理方法,可以自由适应各种需求;
  5. 可以添加一个居中的特殊的YPTabItem按钮,类似于新浪微博中间的“+”号按钮;

##2.3版本功能更新:

  1. 可以为TabBarController设置headerView,其样式可在demo中展示;
  2. demo适配iPhone X,只需在调用setTabBarFrame方法时,将iPhone X的屏幕变化考虑进去即可。

##效果展示:

  1. 根据TabItem的字体确认宽度的TabItem:


  2. 固定宽度的TabItem:


  3. 内容视图不可滚动,TabItem选中背景支持切换动画:


  4. 系统Segment:

##使用方法 使用方法参见Demo

yptabbarcontroller's People

Contributors

yuping1989 avatar yuping290180695 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.