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.
我使用了两个不同的 NSArray 在自定义表视图中以两个不同的标签显示数据。如何使用 UIActionSheet(使用 UIActionSheet 的破坏性按钮)从表格视图中删除一个单元格,以便数据也从 NSArray 中删除?
您必须从数组中删除它 [arrayName removeObjectAtIndex:indexPath.row];
然后重新加载表:
[表重载数据];