前言:
各位同学大家好 ,有段时间没有给大家更新文章了 。 具体多久我也记不清楚了,春节放假比较早,所以就趁着有时间学习了一下iOS开发的基础知识 今天讲的iOS UITableView 配和block 回调实现列表删除教程 。那么废话不多说 ,我们正式开始。
准备工作
安装xcode 这个大家可以自己去appstore 搜索下载安装即可
效果图
具体实现
- 列表显示
@interface ViewController ()<UITableViewDelegate,UITableViewDataSource,GTNotmalTableViewDelegate>
@property(nonatomic,strong,readwrite)UITableView * tableview;
@property(nonatomic,strong,readwrite)NSMutableArray * dataArray;
@end
@implementation ViewController
- (instancetype)init{
self= [super init];
if(self){
_dataArray=@[].mutableCopy;
for(int i=0; i<20;i++){
[_dataArray addObject:@(i)];