NSArray *titles = @[@"添加好友",@"多人会话",@"扫一扫"];
NSArray *icons = @[@"right_menu_addFriend",@"right_menu_multichat",@"right_menu_QR"];
self.popoverView = [[HWPopoverView alloc] initWithTitles:titles icons:icons style:HWPopoverViewStyleRightTop didSelectCallBack:^(NSInteger selectIndex) {
NSLog(@"-->> selectIndex:%ld", (long)selectIndex);
}];
Podfile
platform :ios, '7.0'
pod 'HWPopoverView'
通过执行以下命令完成安装:
$ pod install
在需要使用库的源文件中,导入头文件
#import "HWPopoverView.h"