环绕型button
- 授权协议: Public Domain
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: http://code4app.com/codesample/51e411cd6803fa5f32000000
软件介绍
环绕型按钮,可以当做菜单。点击某个按钮,所有按钮会整体移动,被点击的按钮会移动到最顶端。
作者说:可以自行修改代码,但是使用必须实现这些:
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。
Effective Ruby:改善Ruby程序的48条建议
Peter J. Jones / 杨政权、秦五一、孟樊超 / 机械工业出版社 / 2016-1 / 49
如果你是经验丰富的Rub程序员,本书能帮助你发挥Ruby的全部力量来编写更稳健、高效、可维护和易执行的代码。Peter J.Jones凭借其近十年的Ruby开发经验,总结出48条Ruby的最佳实践、专家建议和捷径,并辅以可执行的代码实例。 Jones在Ruby开发的每个主要领域都给出了实用的建议,从模块、内存到元编程。他对鲜为人知的Ruby方言、怪癖、误区和强力影响代码行为与性能的复杂性的揭......一起来看看 《Effective Ruby:改善Ruby程序的48条建议》 这本书的介绍吧!
