Home

Awesome

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

- (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

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.