欧美成人午夜免费全部完,亚洲午夜福利精品久久,а√最新版在线天堂,另类亚洲综合区图片小说区,亚洲欧美日韩精品色xxx

ios-按鈕-環(huán)繞型button

  • 作者:臭臭
  • 上傳時間:2015-07-15 14:38:50
  • 查看:796次
  • 分類:按鈕(Button)
  • 語言:IOS
  • 設備:iPhone / iPad
  • 標簽:ios_btn

介紹:

環(huán)繞型按鈕,可以當做菜單。點擊某個按鈕,所有按鈕會整體移動,被點擊的按鈕會移動到最頂端。 可以自行修改代碼,但是使用必須實現(xiàn)這些: CircularLayOutView *manger=[[CircularLayOutView alloc] init]; //manger.tager=self; manger.MyDelegate=self; XYPoint *centerPoint=[[XYPoint alloc] i

測試環(huán)境:

測試環(huán)境:Xcode 4.5, iOS 5.0 以上。

效果圖:

ios-按鈕-環(huán)繞型button

使用方法:

環(huán)繞型按鈕,可以當做菜單。點擊某個按鈕,所有按鈕會整體移動,被點擊的按鈕會移動到最頂端。 可以自行修改代碼,但是使用必須實現(xiàn)這些: 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<buttonNameArray.count; 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];

你可能感興趣的:

微信
微博
15311698296

全國免費咨詢熱線

郵箱:codingke@1000phone.com

官方群:148715490

北京千鋒互聯(lián)科技有限公司版權所有   北京市海淀區(qū)寶盛北里西區(qū)28號中關村智誠科創(chuàng)大廈4層
京ICP備2021002079號-2   Copyright ? 2017 - 2022
返回頂部 返回頂部