Home  >  Article  >  Web Front-end  >  UITableView crashes when the page in editing state disappears_html/css_WEB-ITnose

UITableView crashes when the page in editing state disappears_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:42892browse

When UITableView is in editing state, it will crash when the page it is on disappears.

Solution:

- (void)viewWillDisappear:(BOOL)animated

{

[super viewWillDisappear:YES] ;

//It will crash when the page in editing state disappears

[self.tableView setEditing:NO];

}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn