关于tableViewCell行数移动的方法。记得跟后台数据交互,这只是本地展示时候的样子。
2016-04-01 16:44
525 查看
[self.recentChatList
exchangeObjectAtIndex:indexPath.row
withObjectAtIndex:0];
NSIndexPath *firstIndexPate = [NSIndexPath
indexPathForRow:0
inSection:indexPath.section];
[tableView moveRowAtIndexPath:indexPath
toIndexPath:firstIndexPate];
exchangeObjectAtIndex:indexPath.row
withObjectAtIndex:0];
NSIndexPath *firstIndexPate = [NSIndexPath
indexPathForRow:0
inSection:indexPath.section];
[tableView moveRowAtIndexPath:indexPath
toIndexPath:firstIndexPate];
相关文章推荐
- Android Volley完全解析(三),定制自己的Request
- request 对象
- c#中获取服务器IP,客户端IP以及Request.ServerVariables详细说明
- lintcode-medium-N Queens II
- lintcode-medium-N Queens
- UITextField 解决限制文字长度不准确的问题
- Vue.js实例练习
- 仿 UIAlertView动画效果
- Android之UI控件
- 【转载】循环结构中break、continue、return和exit的区别
- iOS-------UITableView
- The request sent by the client was syntactically incorrect
- 随记(八)--图片排版UIViewContentMode
- Recover lost Confluence password
- 设置UITableView cell的左边距
- 快排QuickSort
- pyinstaller ImportError: The 'packaging' package is required; ...
- iOS学习笔记12--纯代码实现原生UITabBarController,手势滑动切换视图
- UI控件的事件监听
- iOS开发 ☞ UILable详解