-
Notifications
You must be signed in to change notification settings - Fork 112
Change Boom Buttons Dynamically (Swift)
Weiping Huang edited this page May 14, 2017
·
2 revisions
Change boom-buttons dynamically.
Swift | Objective-C
The properties of boom-buttons are able to changed from builders. For instance:
(bmb.builder(at: 0) as? SimpleCircleButtonBuilder)?.normalImageName = "The new image name"
Check the demo for details.
You can get the children views or button-layer of a boom-button by the following codes. Notice that the boom-buttons may not be created by BMB, so the method boomButton(at index: Int) -> BoomButton?
may return nil.
bmb.boomButton(at: 0)?.imageView
bmb.boomButton(at: 0)?.label
bmb.boomButton(at: 0)?.subLabel
bmb.boomButton(at: 0)?.buttonLayer
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