Skip to content
プロジェクト

dwalker39/DWBubbleMenuButton

GitHubで見る

概要

A delightful and simple animation class for expanding and collapsing a variable sized menu

デザイン・メディア

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

DWBubbleMenuButton

DWBubbleMenuButton is a simple animation class for expanding and collapsing a variable sized menu.

Project allows for expanding menus in left, right, up, and down directions. Using the class is as simple as setting your home button and adding an array of menu buttons.

CocoaPods

pod 'DWBubbleMenuButton', '~> 1.0.1'

Usage

Create a home button

    UIButton *menuButton = [UIButton buttonWithType:UIButtonTypeSystem];

    [menuButton setTitle:@"Menu" forState:UIControlStateNormal];

Create an instance of DWBubbleMenuButton

    DWBubbleMenuButton *bubbleMenuButton = [[DWBubbleMenuButton alloc] initWithFrame:CGRectMake(20.f,
                                                                                                20.f,
                                                                                                100.f,
                                                                                                100.f)
                                                                  expansionDirection:DirectionDown];
    bubbleMenuButton.homeButtonView = menuButton;

Add buttons to your bubble menu

    [bubbleMenuButton addButtons:@[/* your buttons */]];
    
    /* OR */
    
    [bubbleMenuButton addButton:/* your button */];

DWBubbleMenuButton will automatically handle the animation, frame changes, and showing your menu buttons in the proper order

関連プロジェクトを探す

読み込み中…