iOS 弹出圆形菜单,菜单可围绕滑动

KFCircleMenu

下载地址:KFCircleMenu

iOS 弹出圆形菜单,菜单可围绕滑动_第1张图片
KFCircleMenu_gif.gif

Example

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

  • Kaifeng Wu

License

KFCircleMenu is available under the MIT license. See the LICENSE file for more info.

你可能感兴趣的:(iOS 弹出圆形菜单,菜单可围绕滑动)