iOS 7 UITableView: is it a bug or is it me?

后端 未结 4 889
故里飘歌
故里飘歌 2021-02-14 14:35

Please see the attached image. In table views in iOS 7, UIKit draws a thin gray vertical line between the accessory view and the reordering control. However, when the table view

4条回答
  •  醉梦人生
    2021-02-14 14:46

    I had the same issue and managed to find a work-around. The problem seems to happen when the table view is in editing mode and dequeues a cell which was queued while the table view was in non-editing mode. The work-around is to set the editing property of the cell to NO immediately after dequeuing it. The table view will set this property back to YES by itself after you return the cell in tableView:cellForRowAtIndexPath:.

    cell = [tableView dequeueReusableCellWithIdentifier:cellReuseIdentifier forIndexPath:indexPath];
    cell.editing = NO;
    

提交回复
热议问题