Skip to content
仿腾讯新闻、今日头条栏目管理
Branch: master
Clone or download
Latest commit a9c9b8e Jan 16, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
JMColumnMenu.xcodeproj no message Dec 18, 2017
JMColumnMenu no message Jan 16, 2018
JMColumnMenuTests no message Dec 13, 2017
JMColumnMenuUITests no message Dec 13, 2017
.gitignore Initial commit Dec 13, 2017
JMColumnMenu.podspec no message Dec 21, 2017
LICENSE Initial commit Dec 13, 2017
README.md Update README.md Dec 21, 2017

README.md

JMColumnMenu

仿腾讯新闻、今日头条栏目管理

如何使用

  • 可以通过CocoaPods导入 pod 'JMColumnMenu', '~> 1.1.1'
  • 或者直接下载工程把JMColumnMenu导入到您的项目中

初始化数据

NSMutableArray *myTagsArrM = [NSMutableArray arrayWithObjects:@"要闻",@"视频",@"娱乐",@"军事",@"新时代",@"独家",@"广东",@"社会",@"图文",@"段子",@"搞笑视频", nil];
NSMutableArray *otherArrM = [NSMutableArray arrayWithObjects:@"八卦",@"搞笑",@"短视频",@"图文段子",@"极限第一人", nil];

一行代码调用

JMColumnMenu *menuVC = [JMColumnMenu columnMenuWithTagsArrM:myTagsArrM OtherArrM:otherArrM Type:JMColumnMenuTypeTencent Delegate:self];
[self presentViewController:menuVC animated:YES completion:nil];
        
JMColumnMenu *menuVC1 = [[JMColumnMenu alloc] initWithTagsArrM:myTagsArrM OtherArrM:otherArrM Type:JMColumnMenuTypeTencent Delegate:self];
[self presentViewController:menuVC1 animated:YES completion:nil];

遵守代理

#pragma mark - JMColumnMenuDelegate
- (void)columnMenuTagsArr:(NSMutableArray *)tagsArr OtherArr:(NSMutableArray *)otherArr {
    NSLog(@"选择数组---%@",tagsArr);
    NSLog(@"未选择数组%@",otherArr);
}

- (void)columnMenuDidSelectTitle:(NSString *)title Index:(NSInteger)index {
    NSLog(@"点击的标题---%@  对应的index---%zd",title, index);
}

联系我:

You can’t perform that action at this time.