Latest 0.0.2
Homepage https://github.com/smithgoo/kpengHorizontalView
License MIT
Platforms ios 4.3, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

初始化方法

_kpengHorizontalView *H =[[kpengHorizontalView alloc] initWithFrame:CGRectMake(0, 100,self.view.bounds.size.width, 40) andTitle:@[@"武汉",@"北京",@"北京",@"北京",@"北京",@"北京",@"北京",@"北京"]];

_[self.view addSubview:H]; H.itemClickCallBack = ^(NSInteger itemIndex, NSString *title) { NSLog(@"%ld—%@",itemIndex,title); };

滑动联动方法

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
H.localIndex=3;
});

Latest podspec

{
    "name": "kpengHorizontalView",
    "version": "0.0.2",
    "summary": "u7c7bu4f3cu7f51u6613u4e25u9009u7684u6a2au7740u7684u7b5bu9009u63a7u4ef6uff0cu7c7bu4f3chgsegment u6269u5c55u6301u7eedu4e2dn.",
    "description": "It is a marquee view used on iOS, which implement by Objective-C.",
    "homepage": "https://github.com/smithgoo/kpengHorizontalView",
    "license": "MIT",
    "authors": {
        "KPeng": "[email protected]"
    },
    "source": {
        "git": "https://github.com/smithgoo/kpengHorizontalView.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "4.3"
    },
    "requires_arc": true,
    "source_files": "kpengHorizontalView/*",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This