环绕型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://codercto.com/soft/d/6411.html

Rapid Web Applications with TurboGears

Rapid Web Applications with TurboGears

Mark Ramm、Kevin Dangoor、Gigi Sayfan / Prentice Hall PTR / 2006-11-07 / USD 44.99

"Dear PHP, It's over between us. You can keep the kitchen sink, but I want my MVC. With TurboGears, I was able to shed the most heinous FileMaker Pro legacy 'solu-tion' imaginable. It has relationshi......一起来看看 《Rapid Web Applications with TurboGears》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

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

多种字符组合密码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具