彩虹效果的環形菜單iOS控件:RRCircularMenu

jopen 11年前發布 | 22K 次閱讀 IOS iOS開發 移動開發

帶有彩虹效果的環形菜單。菜單+滑塊+彩虹效果,100% Core Graphics實現動畫(icons除外)。 確切講,這個控件并不是完全可以配置的,但是你可以設置顏色、邊框以及菜單上數字,更多設置恐怕需要深入源代碼進行更改。 彩虹效果的環形菜單iOS控件:

 // 1. Import the header

import "RRCircularMenu.h"

// 2. Instantiate a menu object menu = [[RRCircularMenu alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 180, self.view.frame.size.width, 180)];

// 3. Assign a delegate menu.delegate = self;

// 4. Install in the view hierarchy
[self.view addSubview:menu];

// 5. Display the menu [menu showWithAnimationBlock:^{ self.view.backgroundColor = [UIColor darkGrayColor]; } settingSliderTo:3];</pre>

項目主頁:http://www.baiduhome.net/lib/view/home/1370501500508

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!