【文件属性】:
文件名称:ios-UITableViewCell移动、删除、添加.zip
文件大小:48KB
文件格式:ZIP
更新时间:2022-07-31 13:01:08
列表
开发中常用的移动、删除、添加;
移动:
1:数据源
2:移除方法:
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath
toIndexPath:(NSIndexPath *)toIndexPath
{
id object = [_array objectAtIndex:fromIndexPath.row];
[_array removeObjectAtIndex:fromIndexPath.row];
[_array insertObject:object atIndex:toIndexPath.row];
}
【文件预览】:
MKPTableViewCell
----MKPTableViewCell.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(25KB)
--------xcuserdata()
----.DS_Store(6KB)
----MKPTableViewCellUITests()
--------MKPTableViewCellUITests.m(1KB)
--------Info.plist(733B)
----MKPTableViewCellTests()
--------Info.plist(733B)
--------MKPTableViewCellTests.m(939B)
----MKPTableViewCell()
--------Assets.xcassets()
--------main.m(347B)
--------ViewController.xib(3KB)
--------AppDelegate.h(290B)
--------AppDelegate.m(2KB)
--------Base.lproj()
--------MKPMoveTableViewController.xib(2KB)
--------MKPDeleteTableViewController.h(259B)
--------MKPDeleteTableViewController.m(2KB)
--------MKPInserTableViewController.xib(2KB)
--------ViewController.h(228B)
--------MKPMoveTableViewController.h(255B)
--------MKPInserTableViewController.h(257B)
--------Info.plist(1KB)
--------MKPDeleteTableViewController.xib(2KB)
--------ViewController.m(2KB)
--------MKPMoveTableViewController.m(2KB)
--------MKPInserTableViewController.m(2KB)