Latest 1.0.2
Homepage https://github.com/Xiexingda/XDChannel
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

仿天天快报频道管理器
使用方法
引入头文件

#import "XDChannel.h"

然后调用方法

_inUseTitles = @[@"item_0",@"item_1",@"item_2",@"item_3",@"item_4",@"item_5"];
_unUseTitles = @[@"item_6",@"item_7",@"item_8",@"item_9",@"item_10",@"item_11",@"item_12"];
_currentItem = @"item_0";

//点击事件
- (void)btnTap {
    __weak typeof(self) weakSelf = self;
    [XDChannel showChannelWithInUseTitles:_inUseTitles
                              unUseTitles:_unUseTitles
                              currentItem:_currentItem
                             isFirstFixed:YES
                                   finish:^(NSArray *inUseTitles,
                                            NSArray *unUseTitles,
                                            NSString *currentItem,
                                            NSInteger currentItemIndex,
                                            BOOL isInUseTitlesChanged) {

                                weakSelf.inUseTitles = inUseTitles;
                                weakSelf.unUseTitles = unUseTitles;
                                weakSelf.currentItem = currentItem;

                                NSLog(@"%@-%ld-%d",currentItem, (long)currentItemIndex, isInUseTitlesChanged);
                            }];
}

效果

image

Latest podspec

{
    "name": "XDChannel",
    "version": "1.0.2",
    "summary": "u9891u9053u7ba1u7406",
    "description": "u4e00u4e2au4effu5929u5929u5febu62a5u7684u9891u9053u7ba1u7406",
    "homepage": "https://github.com/Xiexingda/XDChannel",
    "license": "MIT",
    "authors": {
        "xiexingda": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/Xiexingda/XDChannel.git",
        "tag": "1.0.2"
    },
    "source_files": "XDChannel/*.{h,m}",
    "exclude_files": "XDChannel/Exclude",
    "resources": "XDChannel/XDChannelResource.bundle",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This