Skip to content

Commit

Permalink
Modified demo app to provide button size and border width configurati…
Browse files Browse the repository at this point in the history
…on parameters.
  • Loading branch information
JaNd3r committed Sep 9, 2014
1 parent 3144639 commit b0f53ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CircleMenuDemo/CircleMenuDemo/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ - (IBAction)longPressGestureRecognized:(UILongPressGestureRecognizer *)sender
[tOptions setValue:[UIColor colorWithRed:0.25 green:0.5 blue:0.75 alpha:1.0] forKey:CIRCLE_MENU_BUTTON_BACKGROUND_ACTIVE];
[tOptions setValue:[UIColor whiteColor] forKey:CIRCLE_MENU_BUTTON_BORDER];
[tOptions setValue:[NSNumber numberWithInt:self.shadow] forKey:CIRCLE_MENU_DEPTH];
[tOptions setValue:[NSDecimalNumber decimalNumberWithString:@"40.0"] forKey:CIRCLE_MENU_BUTTON_RADIUS];
[tOptions setValue:[NSDecimalNumber decimalNumberWithString:@"2.5"] forKey:CIRCLE_MENU_BUTTON_BORDER_WIDTH];

CKCircleMenuView* tMenu = [[CKCircleMenuView alloc] initAtOrigin:tPoint usingOptions:tOptions withImageArray:self.imageArray];
[self.demoAreaLabel addSubview:tMenu];
Expand Down

0 comments on commit b0f53ec

Please sign in to comment.