-
Notifications
You must be signed in to change notification settings - Fork 112
Share Style (Objective C)
Weiping Huang edited this page May 13, 2017
·
2 revisions
Make a share-style BMB.
Swift | Objective-C
BMB is able to act as a share-action-button. Check the demo for details.
-
Set the piece-place-enum of BMB to share-style.
bmb.piecePlaceEnum = VHPiecePlaceShare;
-
Add builders.
Notice that the number of builders must in range [3, +∞]. And you should usebmb.buttonNumber
as a loop count. Becausebmb.pieceNumber
could NOT know the number of the pieces when the piece-place-enum isVHPiecePlaceShare
.for (int i = 0; i < bmb.buttonNumber; i++) { [bmb addBuilder:[BuilderManager textInsideCircleButtonBuilder]]; }
-
(Optional) Customize your share style BMB.
bmb.shareLineLength = 25; bmb.shareLineWidth = 3; bmb.dotRadius = 6; bmb.shareLine1Color = [UIColor blackColor]; bmb.shareLine2Color = [UIColor blackColor];
You can add boom-buttons as many as possible by customizing positions.
Home
Chapters
- Basic Usage
- Simple Circle Button
- Text Inside Circle Button
- Text Outside Circle Button
- Ham Button
- Share Style
- Custom Position
- Button Place Alignments
- Different Ways to Boom
- Ease Animations for Buttons
- Different Order for Buttons
- Other Animations Attributes for Buttons
- Click Event and Listener
- Control BMB
- Use BMB in Navigation Bar
- Use BMB in Table View
- Attributes for BMB or Pieces on BMB
- Cache Optimization & Boom Area
- Change Boom Buttons Dynamically
- Blur Background & Tip
- Fade Views
- Structure of BMB
- Version History