美文网首页
iOS 滑动UITableView,UITextField文字消

iOS 滑动UITableView,UITextField文字消

作者: 布谷布谷7788 | 来源:发表于2018-11-22 11:23 被阅读0次

方法一:

由于方式造成的消失:可以将方法cellForRowAtIndexPath里面给为:

- (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath{

    NSString*identifier = [NSStringstringWithFormat:@"%ld%ld",(long)indexPath.section,(long)indexPath.row];

    UITableViewCell*cell = [tableViewdequeueReusableCellWithIdentifier:identifier];

    if(cell ==nil)

    {

        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:identifier];

 }

  return  cell;

}

方式二:

原文链接

相关文章

网友评论

      本文标题:iOS 滑动UITableView,UITextField文字消

      本文链接:https://www.haomeiwen.com/subject/lcytqqtx.html