-
Notifications
You must be signed in to change notification settings - Fork 112
Cache Optimization & Boom Area (Swift)
Weiping Huang edited this page May 14, 2017
·
3 revisions
What if I want BMB to boom in just its parent-view?
Swift | Objective-C
In BMB, cache optimization is apply for avoiding re-create boom-buttons every time it booms. With cache optimization, boom-buttons will not be removed so that they are not necessary to re-create, which can optimize the resource. The default value for cache optimization is true
, you can turn it off by:
bmb.cacheOptimized = false
Notice that when BMB is used in table-view, cache optimization is turned off automatically.
Sometimes, maybe you want BMB to boom in its parent-view. Use the following code to do that:
bmb.isBoomInWholeScreen = false
The above BMB booms in its parent-view, and the below one booms in the whole screen.
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