Latest 1.0.1
Homepage https://github.com/SplashZ/YJStretchableBar
License MIT
Platforms ios 7.0, requires ARC
Authors

[CocoaPods](http://cocoapods.org/?q= YJStretchableBar) 
[CocoaPods](http://cocoapods.org/?q= YJStretchableBar) 
Support 
Travis-CI
License MIT

demogif

English

YJStretchableToolBar is an easy and stretchable tool bar.。

Installation

  1. Add pod ‘YJStretchableBar’ to your Podfile.
  2. Run pod install or pod update.
  3. import <YJStretchableBar/YJStretchableBar.h>.

Feature

  • Support to portrait & landscape
  • Sepcify stretching orientation automatically.
  • Easy and loose coupling

Usage


    _controlBar = [YJStretchableBar toolBarWithButtons:btnArr
                                           barItemSize:CGSizeMake(50, 50)
                                         portraitPoint:CGPointMake(0, CGRectGetMidY(self.view.frame) - 25 + 1)
                                        landscapePoint:CGPointMake(CGRectGetHeight(self.view.frame) * 0.5 - 25 - 1, 0)];

See demo for details.

Requirements

  • ARC
  • Requires iOS 7.0+.
  • Adapt to both iPhone & iPad.

License

YJStretchableBar is provided under the MIT license.See LICENSE file for details.

Chiness

YJStretchableToolBar 是一个非常简单易用的可伸缩控制条。

安装

  1. 在 Podfile 中添加 pod 'YJStretchableBar'
  2. 执行 pod installpod update
  3. 导入 <YJStretchableBar/YJStretchableBar.h>。

特色

  • 支持横竖屏
  • 智能判断伸缩方向
  • 集成简单,无侵染

使用


_controlBar = [YJStretchableBar toolBarWithButtons:btnArr
                                           barItemSize:CGSizeMake(50, 50)
                                         portraitPoint:CGPointMake(0, CGRectGetMidY(self.view.frame) - 25 + 1)
                                        landscapePoint:CGPointMake(CGRectGetHeight(self.view.frame) * 0.5 - 25 - 1, 0)];

完整例子请参照 demo

配置

  • ARC
  • 该项目最低支持 iOS 7.0
  • 同时支持 iPhone 和 iPad

许可证

YJStretchableBar 使用 MIT 许可证,详情见 LICENSE 文件。

Latest podspec

{
    "name": "YJStretchableBar",
    "platforms": {
        "ios": "7.0"
    },
    "version": "1.0.1",
    "summary": "An easy and stretchable tool bar.",
    "homepage": "https://github.com/SplashZ/YJStretchableBar",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "splashz": "[email protected]m"
    },
    "source": {
        "git": "https://github.com/SplashZ/YJStretchableBar.git",
        "tag": "1.0.1"
    },
    "requires_arc": true,
    "source_files": "YJStretchableBar/*.{h,m}",
    "public_header_files": "YJStretchableBar/*.{h}"
}

Pin It on Pinterest

Share This