好库网 好库网首页 | 我的好库
我是爱凤

XXXRoundMenuButton(iOS源代码)

发布者:iphone
发布日期:2016/3/30 23:01:25   更新日期:2016/3/30 23:01:25
文件大小:280K
下载次数:17   浏览次数:412
评分:4.80

源码目录结构图

  • ._XXXRoundMenuButton-master

介绍

来源: code4app.com Licence: MIT
作者:
一个简单的圆形菜单控件。设计来自InVision团队的 Filter Menu by Anton Aheichanka for InVision 和 Secret Project by Anton Aheichanka Follow for InVision Follow



使用方法:

self.roundMenu.centerButtonSize = CGSizeMake(44, 44);

self.roundMenu.centerIconType = XXXIconTypeUserDraw;

self.roundMenu.tintColor = [UIColor whiteColor];

self.roundMenu.jumpOutButtonOnebyOne = YES;

[self.roundMenu setDrawCenterButtonIconBlock:^(CGRect rect, UIControlState state) {

if (state == UIControlStateNormal)

{

UIBezierPath* rectanglePath = [UIBezierPath bezierPathWithRect: CGRectMake((rect.size.width - 15)/2, rect.size.height/2 - 5, 15, 1)];

[UIColor.whiteColor setFill];

[rectanglePath fill];



UIBezierPath* rectangle2Path = [UIBezierPath bezierPathWithRect: CGRectMake((rect.size.width - 15)/2, rect.size.height/2, 15, 1)];

[UIColor.whiteColor setFill];

[rectangle2Path fill];



UIBezierPath* rectangle3Path = [UIBezierPath bezierPathWithRect: CGRectMake((rect.size.width - 15)/2, rect.size.height/2 + 5, 15, 1)];

[UIColor.whiteColor setFill];

[rectangle3Path fill];}

}];

[self.roundMenu 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 imageN

评论

账号 密码 还没帐号呢,现在注册一个?



免责声明:好库网所展示的信息由发布者自行提供,其真实性、准确性和合法性由信息发布人负责。好库网不提供任何保证,并不承担任何法律责任。