CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

XDChannel 1.0.2

XDChannel 1.0.2

Maintained by Xiexingda.



XDChannel 1.0.2

  • By
  • xiexingda

XDChannel

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

#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