-
Notifications
You must be signed in to change notification settings - Fork 112
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
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 = YES;
to remove background of BMB and get ready for some recycler jobs. -
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
- 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