abm

ABMenuTableViewCell

Highly customizable, yet simple to use, solution for UITableViewCell right menu, shown by ''swipe to delete' gesture.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

79

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

0

License

MIT

Categories

Readme

ABMenuTableViewCell

Fully compatible with iOS 9

Highly customizable, yet simple to use, solution for UITableViewCell right menu, shown by 'swipe to delete' gesture.

Mail App Styled Menu - show & hide example:

Without any extra work needed, showing the right menu view works with default swipe-to-delete gesture. Also, hiding the menu is done using known gestures like tapping or swiping back.

Screenshot

Mail App Styled Menu - delete item example:

Deleting rows is as simple as the default implementation.

Screenshot

Custom Styled Menu - show, hide & delete example

The advantage of using custom menus is that you're not stuck with Apple style buttons and you can easily integrate your own design.

Screenshot

Integration

  • Install via cocoapods (just add pod 'ABMenuTableViewCell', '~> 2.0' to your Podfile), or clone this repository and drag the content of ABMenuTableViewCell folder to your project.
  • To use you just need to replace UITableViewCell with ABMenuTableViewCell and assign your custom menu view to rightMenuView property and you're ready to go! You can take a look at the following snippet for details.
- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *identifier = @"ABMenuTableViewCell";
    ABMenuTableViewCell *cell = (ABMenuTableViewCell*)[tableView cellForRowAtIndexPath:indexPath];

    if (!cell) {
        cell = [[ABMenuTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
    }
    
    // use your own custom menu view
    UIView *menuView = [[UIView alloc] initWithFrame:CGRectMake(.0, .0, 160.0, 44.0)];
    menuView.backgroundColor = [UIColor redColor];

    cell.rightMenuView = menuView;
    cell.textLabel.text = @"Lorem ipsum dolor sit amet";

    return cell;
}

Requirements

  • iOS 7.x or newer
  • ARC
  • Xcode 6.x

Credits

ABMenuTableViewCell was created by Alex Bumbu.

License

ABMenuTableViewCell is available under the MIT license. See the LICENSE file for more info. For usage without attribution contact Alex Bumbu.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial