控制一个cell不可被移动到另外一个section中
2012-11-30 17:20
190 查看
- (NSIndexPath *) tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath {
return sourceIndexPath.section == proposedDestinationIndexPath.section ? proposedDestinationIndexPath : sourceIndexPath;
}
return sourceIndexPath.section == proposedDestinationIndexPath.section ? proposedDestinationIndexPath : sourceIndexPath;
}
相关文章推荐
- 设计技巧27:代理 Proxy 为另外一个对象提供替身或者站位符以控制对对象的访问
- ios UITableview 刷新某一个cell 或 section
- js动画 从一个位置渐渐移动到另外一个位置 通用
- iOS UITableview 只刷新一个cell 或 section
- 如何移动一个带有lob字段的表到另外一个表空间
- ROS Learning-030 (提高篇-008 A Mobile Base-06) 控制移动平台 --- (Python)odom导航的例子:移动一个方块路径
- ios UITableview 刷新某一个cell 或 section
- ios UITableview 刷新某一个cell 或 section
- IOS开发(28)UITableView之移动Section和Cell
- tableView指定刷新一个cell或一个section
- ROS Learning-030 (提高篇-008 A Mobile Base-06) 控制移动平台 --- (Python)odom导航的例子:移动一个方块路径
- IOS学习笔记(11)TableView中移动cell和section
- 关于在cocos2d-x中一个精灵移动到 另外一个地点的实现方法。
- 如何安全地跨窗体调用Timer控件 从一个窗体调用控制另外一个窗体的控件
- 一个下拉列表控件无刷新的控制另外一个下拉列表控件(利用Coolite.Ext控件)
- UITableView 刷新某一个cell 或 section
- ios uitableview 刷新某一个cell 或 section
- 怎么在XenServer中复制或移动运行着的VM到另外一个存储
- IOS 构造和使用TableView(基于storyboard) (七)移动cell和section
- SQL将一个数据库的某一张表移动到另外一个数据库中(表的结构不变)