开发者

After deleting the UITableViewCell , a blank row appeared

开发者 https://www.devze.com 2023-03-24 22:35 出处:网络
First,I customized the UITableViewCell and put a new label into it; Then I swiped the row anddeleted it (not the last one), and it to be deleted. unfortuna开发者_JS百科tely,the last one moved down

First,I customized the UITableViewCell and put a new label into it;

Then I swiped the row and deleted it (not the last one), and it to be deleted. unfortuna开发者_JS百科tely,the last one moved down and covered the new one appeared in the window,but leave a blank row, just like the image below;

After deleting the UITableViewCell , a blank row appeared


Make sure that:

  1. numberOfRowsInSection is properly implemented - maybe you are getting the number of rows from an [array count] that still has the NSString in question;
  2. You are calling reloadData
0

精彩评论

暂无评论...
验证码 换一张
取 消