#import "CustomPopOverView.h"
@interface GlossaryTableViewCell()<CustomPopOverViewDelegate> {
CustomPopOverView *_gView;
}
- (IBAction)moveGroup_btn_clicked:(UIButton *)sender {
NSLog(@"moveGroup_btn_clickedmoveGroup_btn_clicked");
[self addButtonAnimation:sender];
// 弹窗下拉列表,供用户移动选择
CPShowStyle *style = [CPShowStyle new];
style.triAngelHeight = 10.0;
style.triAngelWidth = 7.0;
style.containerCornerRadius = 5.0;
style.roundMargin = 5.0;
style.defaultRowHeight = 40;
style.showSpace = 2;
style.tableBackgroundColor = [UIColor whiteColor];
style.textColor = [UIColor blackColor];
style.textAlignment = NSTextAlignmentLeft;
style.containerBackgroudColor = [UIColor whiteColor];
style.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
NSArray *arr = @[
@{@"name": NSLocalizedString(@"Key_Edit", nil), @"icon": @"editBtn"},
@{@"name": NSLocalizedString(@"Key_Share", nil), @"icon": @"Icon_shareBtn"},
@{@"name": NSLocalizedString(@"Key_Top", nil), @"icon": @"Icon_setTop"},
// @{@"name": NSLocalizedString(@"Key_Add_widget", nil), @"icon": @"icon_AddXiaoZuJian"},
@{@"name": NSLocalizedString(@"Key_Delete", nil), @"icon": @"icon_Delete"}
];
CustomPopOverView *view = [[CustomPopOverView alloc]initWithBounds:CGRectMake(0, 0, 155, 40*4) titleInfo:arr style:style];
_gView = view;
view.delegate = self;
[view showFrom:sender alignStyle:CPAlignStyleRight];
}
- (void)popOverView:(CustomPopOverView *)pView didClickMenuIndex:(NSInteger)index {
NSLog(@"------=================-------------: %ld", index);
// if (self.homeCollectViewCellDelegate && [self.homeCollectViewCellDelegate respondsToSelector:@selector(clickedHomeCellSettingBtn:withIndex:)]) {
// [self.homeCollectViewCellDelegate clickedHomeCellSettingBtn:_status withIndex:index];
// }
[_gView dismiss];
}
网友评论