- iOS 7.0 or later
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
pod 'HWPopoverView'
Complete the installation by executing:
$ pod install
In the source files where you need to use the library, import the header file:
#import "HWPopoverView.h"