forked from organicmaps/organicmaps
[iOS] Fix crash when many bookmarks in the list (header cell with category isn't visible).
This commit is contained in:
parent
95e92382d5
commit
f493f4ee90
1 changed files with 6 additions and 2 deletions
|
@ -328,8 +328,12 @@
|
|||
[m_locationManager stop:self];
|
||||
// Save possibly edited set name
|
||||
UITableViewCell * cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
|
||||
NSString * newName = ((UITextField *)[cell.contentView viewWithTag:TEXTFIELD_TAG]).text;
|
||||
[self renameBMCategoryIfChanged:newName];
|
||||
if (cell != nil)
|
||||
{
|
||||
NSString * newName = ((UITextField *)[cell.contentView viewWithTag:TEXTFIELD_TAG]).text;
|
||||
[self renameBMCategoryIfChanged:newName];
|
||||
}
|
||||
|
||||
[super viewWillDisappear:animated];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue