Skip to content

Button Place Alignments (Objective C)

Weiping Huang edited this page May 13, 2017 · 2 revisions

Place all the buttons to anywhere on screen.

Swift | Objective-C

Button Place Alignments

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 = VHButtonPlaceAlignmentBottomLeft;

Check ButtonPlaceAlignmentEnum for all the supported alignment-enums.

More Accurate

Boom-buttons is able to customize the margin between surroundings. For example:

bmb.buttonTopMargin = 20;
bmb.buttonBottomMargin = 20;
bmb.buttonLeftMargin = 20;
bmb.buttonRightMargin = 20;

Home
Chapters

  1. Basic Usage
  2. Simple Circle Button
  3. Text Inside Circle Button
  4. Text Outside Circle Button
  5. Ham Button
  6. Share Style
  7. Custom Position
  8. Button Place Alignments
  9. Different Ways to Boom
  10. Ease Animations for Buttons
  11. Different Order for Buttons
  12. Other Animations Attributes for Buttons
  13. Click Event and Listener
  14. Control BMB
  15. Use BMB in Navigation Bar
  16. Use BMB in Table View
  17. Attributes for BMB or Pieces on BMB
  18. Cache Optimization & Boom Area
  19. Change Boom Buttons Dynamically
  20. Blur Background & Tip
  21. Fade Views
  22. Structure of BMB
  23. Version History
Clone this wiki locally