iOS 弹出圆形菜单,菜单可围绕滑动
2018-07-18 本文已影响253人
theKF
KFCircleMenu
下载地址:KFCircleMenu
KFCircleMenu_gif.gifExample
To run the example project, clone the repo, and run pod install
from the Example directory first.
Usage
self.circleMenu2.centerButtonSize = CGSizeMake(44, 44);
[self.circleMenu2 loadButtonWithIcons:@[
[UIImage imageNamed:@"icon_can"],
[UIImage imageNamed:@"icon_pos"],
[UIImage imageNamed:@"icon_img"],
[UIImage imageNamed:@"icon_can"],
[UIImage imageNamed:@"icon_pos"],
[UIImage imageNamed:@"icon_img"],
[UIImage imageNamed:@"icon_pos"]
]
innerCircleRadius:30];
[self.circleMenu2 setButtonClickBlock:^(NSInteger idx) {
NSLog(@"button %@ clicked !",@(idx));
}];
[self.circleMenu2 setCenterIcon:[UIImage imageNamed:@"icon_pos"]];
[self.circleMenu2 setCenterIconType:KFIconTypeCustomImage];
self.circleMenu2.tintColor = [UIColor whiteColor];
self.circleMenu2.mainColor = [UIColor colorWithRed:0.13 green:0.58 blue:0.95 alpha:1];
Requirements
- Xcode 8
- iOS 8.0
Installation
KFCircleMenu is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'KFCircleMenu'
Author
License
KFCircleMenu is available under the MIT license. See the LICENSE file for more info.