项目介绍:
一个点击弹出动画圆弧菜单的按钮,可以适用于APP菜单页面的隐藏,当点击按钮时触发菜单。
集成代码如下:
[Objective-C] 查看源文件 复制代码
#import "ViewController.h" #import "RometeView.h" @interface ViewController () @property (nonatomic, strong) UIButton *button; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; RometeView *romate = [RometeView sharedRometeView]; romate.center = CGPointMake(self.view.bounds.size.width-67, self.view.bounds.size.height-70); romate.menuCount = 13; [self.view addSubview:romate]; _button = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 55, 55)]; _button.center = CGPointMake(self.view.bounds.size.width-67, self.view.bounds.size.height-70); _button.backgroundColor = [UIColor yellowColor]; _button.layer.cornerRadius = 27.5; [_button addTarget:self action:@selector(showItems:) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:_button]; }
demo下载:
RomateDemo.zip
(67.27 KB, 下载次数: 199, 售价: 10 金钱)
2016-7-14 16:11 上传
点击文件名下载附件