Skip to content

Use BMB in Table View (Objective C)

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

Attentions when you need a BMB in table-view.

Swift | Objective-C

Use BMB in Table View

To use BMB in table-view, we need to pay attention to the followings. Check the demo for details.

  1. Set the BMB's is-in-list attribute by bmb.isInList = YES; to remove background of BMB and get ready for some recycler jobs.

  2. In - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath method, remove all the builders of BMB and then add builders to it again:

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
        
        ...
    
        cell.bmb.buttonEnum = VHButtonSimpleCircle;
        cell.bmb.piecePlaceEnum = VHPiecePlaceShare;
        cell.bmb.buttonPlaceEnum = VHButtonPlaceSC_9_1;
        cell.bmb.isInList = YES;
        [cell.bmb clearBuilders];
        for (int i = 0; i < cell.bmb.buttonNumber; i++)
        {
            [cell.bmb addBuilder:[BuilderManager simpleCircleButtonBuilder]];
        }
    }
    

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