CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2017 |
Maintained by shannoon.
pod 'XLBottomMultiPurposeView'
NSArray *topTexts = @[@"微信好友",@"朋友圈",@"QQ",@"QQ空间",@"新浪微博",@"微信好友",@"朋友圈"];
NSArray *topImages = @[@"details_icon_wechat_nor",@"details_icon_pyq_nor",@"details_icon_qq_nor",@"details_icon_kj_nor",@"details_icon_weibo_nor",@"details_icon_wechat_nor",@"details_icon_pyq_nor"];
NSArray *topHighImages = @[@"details_icon_wechat_dow",@"details_icon_pyq_dow",@"details_icon_qq_dow",@"details_icon_kj_dow",@"details_icon_weibo_dow",@"details_icon_wechat_dow",@"details_icon_pyq_dow"];
NSArray *bottomTexts = @[@"删除"];
NSArray *bottomImages = @[@"details_icon_delete_nor"];
NSArray *bottomHighImages = @[@"details_icon_delete_dow"];
// 构建数据源
NSMutableArray *topItems = [NSMutableArray arrayWithCapacity:topTexts.count] ;
NSMutableArray *bottomItems = [NSMutableArray arrayWithCapacity:bottomTexts.count];
for (int i = 0 ; i < topTexts.count; i ++) {
XLBottomMultiPurposeViewItem *item = [XLBottomMultiPurposeViewItem itemWithImage:topImages[i] highImage:topHighImages[i] title:topTexts[i]];
[topItems addObject:item];
}
for ( int i = 0 ; i < bottomTexts.count; i++) {
XLBottomMultiPurposeViewItem *item = [XLBottomMultiPurposeViewItem itemWithImage:bottomImages[i] highImage:bottomHighImages[i] title:bottomTexts[i]];
[bottomItems addObject:item];
}
// 展示组件
[XLBottomMultiPurposeView showBottomMultiPurposeViewWithTopItems:topItems bottomItems:bottomItems delegate:self topTitleLabelText:@"分享到"];