在我的应用程序中,我使用 tableview,其中每个单元格都添加 UIScrollView,在该 scrollView 中再次添加 UIView(此视图是从另一个视图类添加的)。当视图的触摸动作正在执行但当我滚动表格时,视图中的所有修改都在重新加载加载时的内容。
那么我们如何才能将视图的修改保存在当前tablecell中的另一个类中。
在 touchesEnded 方法中使用
[music.createTableView beginUpdates];
[music.createTableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath, nil] withRowAnimation:UITableViewRowAnimationNone];
[music.createTableView endUpdates];
任何帮助或建议。
提前致谢。