环绕型button

码农软件 · 软件分类 · 按钮(Button) · 2019-05-23 23:41:35

软件介绍

环绕型按钮,可以当做菜单。点击某个按钮,所有按钮会整体移动,被点击的按钮会移动到最顶端。

    作者说:可以自行修改代码,但是使用必须实现这些:

    CircularLayOutView *manger=[[CircularLayOutView alloc] init];

     //manger.tager=self;

     manger.MyDelegate=self;

     XYPoint *centerPoint=[[XYPoint alloc] init];

     centerPoint.xPoint=160;

     centerPoint.yPoint=230;

     manger.centerPoint=centerPoint;

     XYPoint *buttonWeightAndHeight=[[XYPoint alloc] init];

     buttonWeightAndHeight.xPoint=40;

     buttonWeightAndHeight.yPoint=40;

     manger.buttonWeightAndHeight=buttonWeightAndHeight;

     manger.radius=100;

     NSArray *buttonNameArray=@[@“按钮1”,@“按钮2”,@“按钮3”,@“按钮4”,@“按钮5”,@“按钮6”];

     NSMutableArray *imageArr=[[NSMutableArray alloc] initWithCapacity:0];

     for (int i=0; i
     if(i>8)

     {

     i=8;

     }

     [imageArr addObject:[UIImage imageNamed:[NSString stringWithFormat:@“%d.png”,i]]];

     }

     manger.buttonCount=6;

     manger.buttonIndexNameArray=buttonNameArray;

     manger.buttonIndexBackGroundArray=imageArr;

     [manger creatUIToView:self.view target:nil];

     [self.view addSubview:manger];

    小编注:感谢作者@joser_君赏 分享代码于Code4App。

本文地址:https://www.codercto.com/soft/d/6411.html

上瘾

上瘾

[美] 尼尔·埃亚尔、[美] 瑞安·胡佛 / 钟莉婷、杨晓红 / 中信出版集团 / 2017-5 / 49.00元

——为什么我们会习惯性地点开某个App? ——这种使用习惯到底是如何养成的? ——为什么有些产品能让我们戒不掉,而其他的产品却不行? ——是否有什么秘诀能让用户对你的产品形成使用习惯,欲罢不能? 《上瘾》揭示了很多让用户形成使用习惯,甚至“上瘾”的互联网产品服务背后的基 本设计原理,告诉你怎样打造一款让用户欲罢不能的产品。作者根据自己多年的研究、咨询及实际经验,提出了新颖而......一起来看看 《上瘾》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具