-
Notifications
You must be signed in to change notification settings - Fork 112
Use BMB in Table View (Swift)
Weiping Huang edited this page May 14, 2017
·
2 revisions
Attentions when you need a BMB in table-view.
Swift | Objective-C
To use BMB in table-view, we need to pay attention to the followings. Check the demo for details.
-
Set the BMB's is-in-list attribute by
bmb.isInList = true
to remove background of BMB and get ready for some recycler jobs. -
In
tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
method, remove all the builders of BMB and then add builders to it again:func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { ... cell.bmb.buttonEnum = .simpleCircle cell.bmb.piecePlaceEnum = .share cell.bmb.buttonPlaceEnum = .sc_9_1 cell.bmb.isInList = true cell.bmb.clearBuilders() for _ in 0..<cell.bmb.buttonPlaceEnum.buttonNumber() { cell.bmb.addBuilder(BuilderManager.simpleCircleButtonBuilder()) } }
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