From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/DWBubbleMenuButton/README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/DWBubbleMenuButton/README.md b/screendisplay/Pods/DWBubbleMenuButton/README.md new file mode 100755 index 0000000..2ae289a --- /dev/null +++ b/screendisplay/Pods/DWBubbleMenuButton/README.md @@ -0,0 +1,43 @@ +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' +``` + +Usage +================== +Create a home button +```objective-c + UIButton *menuButton = [UIButton buttonWithType:UIButtonTypeSystem]; + + [menuButton setTitle:@"Menu" forState:UIControlStateNormal]; +``` + +Create an instance of DWBubbleMenuButton +```objective-c + 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 +```objective-c + [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 -- Gitblit v1.8.0