Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我UITableViewCell在打电话之前先等一下drawRect:,因为一些后台进程正在发生。在那个时候,它用另一个单元格的内容填充单元格。我不希望它那样做,我希望它看起来是空的。我该如何阻止这种行为?
UITableViewCell
drawRect:
与其让 drawRect 等待,不如调用它,但让它在加载时在那里绘制你想要的东西(空白区域,加载......等),然后再次调用它来绘制你有数据时需要的东西。