我看到这个用了很多,但我不确定它是做什么的。
animated:YES
或者
animated:NO
例如在 viewDidLoad 方法中我可能有这个代码
self.tableView.allowsSelectionDuringEditing = YES;
在 viewWillAppear 中我可能有这个代码
// some code here, and/or acondition is met, therefore put the tableview in editing mode
[self setEditing:YES animated:NO];
再说一遍,什么是animated:NO
意思?animated:NO
和和有什么区别animated:YES
?我在我的应用程序中看不到明显的和/或功能上的差异。