Latest 1.0.0
Homepage https://github.com/410900345/LongPressTableDemo
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

LongPressTableDemo

长按删除tableviewCell

目的

适用于一些页面,滑动事件被占用的情况,还的去做滑动删除

集成方法

加入demo中的LongPressTable文件夹

#import "UITableView+LongPressTable.h"
#import "UITableViewDataSource_LongPreeable.h"

添加代码

tableView.longPressTableAble = YES;

实现协议UITableViewDataSource_LongPreeable为了保证cel高度不一样情况下正常运作

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

集成成功

Latest podspec

{
    "name": "LongPressTable",
    "version": "1.0.0",
    "license": "MIT",
    "homepage": "https://github.com/410900345/LongPressTableDemo",
    "authors": {
        "Suk": "[email protected]"
    },
    "summary": "long press delete tableviewCell",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/410900345/LongPressTableDemo.git",
        "tag": "1.0.0"
    },
    "source_files": "LongPressTableCell/**/*.{h,m}",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This