Latest 1.0.1
Homepage https://github.com/tpctt/HTTopView
License MIT
Platforms ios 6.0, requires ARC
Dependencies HTHorizontalSelectionList
Frameworks Foundation, UIKit
Authors

HTTopView 使用 block 使用 HTHorizontalSelectionList



@implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

self.topView = [[HTTopView alloc] initWithFrame:CGRectMake(0, 0, 200, 44)];
self.topView.mainColor = [UIColor redColor];
[self.view addSubview:self.topView];

static NSArray *titles;
titles = @[@"AA",@"bb" ];

self.topView.topViewNumberBlock = ^NSInteger(HTTopView *view ){
return titles.count;
};

self.topView.topViewTitleBlock = ^NSString *(HTTopView *view,NSInteger index ){
return [titles objectAtIndex:index];
};

self.topView.topViewselectTopItemBlock = ^void(HTTopView * topView ,NSInteger index ) {

NSLog(@"%ld",index);

};

}

@end

Latest podspec

{
    "name": "HTTopView",
    "version": "1.0.1",
    "summary": "u4f7fu7528 block u4f7fu7528 HTHorizontalSelectionList",
    "homepage": "https://github.com/tpctt/HTTopView",
    "social_media_url": "https://github.com/tpctt/HTTopView",
    "platforms": {
        "ios": "6.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        " tim": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tpctt/HTTopView.git",
        "tag": "1.0.1"
    },
    "requires_arc": true,
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "dependencies": {
        "HTHorizontalSelectionList": []
    },
    "source_files": "Classess/**/*.{h,m,mm}"
}

Pin It on Pinterest

Share This