-
Notifications
You must be signed in to change notification settings - Fork 112
Button Place Alignments (Swift)
Weiping Huang edited this page May 13, 2017
·
3 revisions
![](https://github.com/Nightonke/BoomMenuButton-Images/raw/master/iOS/buttonPlaceAlignment.png)
Place all the buttons to anywhere on screen.
Swift | Objective-C
In version 2.0.0 or above, the place-alignment of boom-buttons on the screen(or its parent-view) is able to customized. This is helpful when BMB is used in pad(picture above). You can set this attribute by:
bmb.buttonPlaceAlignmentEnum = .bottomLeft
Check ButtonPlaceAlignmentEnum for all the supported alignment-enums.
Boom-buttons is able to customize the margin between surroundings. For example:
bmb.buttonTopMargin = 20
bmb.buttonBottomMargin = 20
bmb.buttonLeftMargin = 20
bmb.buttonRightMargin = 20
![](https://github.com/Nightonke/BoomMenuButton-Images/raw/master/iOS/buttonPlaceAlignmentMoreAccurate.png)
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