Latest 0.1.0
Homepage https://github.com/zhbgitHub/BGSegementController
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit, QuartzCore
Authors

Version
License
Platform

安装

  • clone 仓库,打开Example中的.xcworkspace,可查看效果.
  • clone 仓库后,将BGIndicateView.h/m , BGSegementController.h/m 四个文件拖入项目即可.(说明:BGIndicateView后期补充多种指示器的样式,用户也可自行添加)
  • cocoaPods安装:
    pod "BGSegementController"

使用

  • import "BGSegementController.h"

  • 初始化segementController.
  • 设置segementController的viewControllers数组.(存放子控制器的数组)
  • segementController作为其他控制的childViewController使用,勿忘下面操作.
    
    [currenController.view addSubview:pagesContainer.view];
    [currenController.view addChildViewController:pagesContainer];

//eg:

  • (void)methodName
    {
    [self.view addSubview:pagesContainer.view];
    [self addChildViewController:pagesContainer];
    }

  • BGSegementController目前通过实现scrollerView的delegate方法,控制显示效果.而我死来想去,正在通过kvo方式达到一样的效果.正在拼命写代码…(后期待上传)

后期会上传多个功能组件.敬请期待…

联系方法

Latest podspec

{
    "name": "BGSegementController",
    "version": "0.1.0",
    "summary": "BGSegementController",
    "description": "u7c7bu4f3cu7f51u6613u65b0u95fb/u4ecau65e5u5934u6761u7684u9996u9875,u5177u6709u53efu6edau52a8u7684SegementView",
    "homepage": "https://github.com/zhbgitHub/BGSegementController",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "zhbgitHub": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zhbgitHub/BGSegementController.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "BGSegementController/Classes/**/*",
    "frameworks": [
        "Foundation",
        "UIKit",
        "QuartzCore"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This