tableviewcell长按删除行
来源:互联网 发布:linux装mysql数据库 编辑:程序博客网 时间:2024/06/05 05:42
- (void)viewDidLoad
{
//给cell加长按手势
UILongPressGestureRecognizer *gestureLongPress = [[UILongPressGestureRecognizeralloc]initWithTarget:selfaction:@selector(gestureLongPress:)];
gestureLongPress.minimumPressDuration =1;
[self.tableV0addGestureRecognizer:gestureLongPress];
[gestureLongPressrelease];
}
#pragma mark - 长按手势
- (void)gestureLongPress:(UILongPressGestureRecognizer *)gestureRecognizer
{
CGPoint tmpPointTouch = [gestureRecognizer locationInView:self.tableV0];
if (gestureRecognizer.state ==UIGestureRecognizerStateBegan) {
NSIndexPath *indexPath = [self.tableV0indexPathForRowAtPoint:tmpPointTouch];
if (indexPath == nil) {
NSLog(@"not tableView");
}else{
focusSection = [indexPath section];
focusRow = [indexPath row];
NSLog(@"%d",focusSection);
NSLog(@"%d",focusRow);
deletebtn.hidden =NO;
}
}
}
- tableviewcell长按删除行
- 长按删除tableviewCell
- ios中tableViewCell的长按实现
- 长按tableViewCell弹出复制、黏贴菜单
- 长按tableViewCell弹出复制、黏贴菜单
- TableViewCell实现长按复制功能
- ios中tableviewcell允许长按出现剪切板
- iOS tableViewCell 的移动操作 (添加长按手势)
- GridView长按删除
- recyclerview长按删除
- iOS tableviewCell的多行选择删除和全选删除
- iOS tableviewCell的多行选择删除和全选删除
- TableViewCell添加和删除
- IOS-TableViewCell滑动删除
- iOS TableViewcell 全选删除
- tableViewCell删除按钮自定义
- tableViewcell 的右移多选删除
- 长按Backspace连续删除
- windows下redis安装及thinkphp中predis配置
- 网页上制作动画效果的方法及优势劣势
- 术语的积累
- Oracle12c中性能优化&功能增强新特性之重大突破——内存列存储新特性
- linux静态库的生成与使用(转)
- tableviewcell长按删除行
- 使用Qt显示GIF格式动画
- [CSS3 Practice] Slides Effect With Pure CSS3
- 使用 CAS 在 Tomcat 中实现单点登录
- 使用隐式意图调用系统拨号,呼叫程序
- 局域网中同步时间
- linux -bash: jps: command not found
- java实现html转pdf,支持中文,css以及中文换行
- 图像处理相关的重要期刊汇总