forked from organicmaps/organicmaps
[ios] Workaround for ios 7 crash.
This commit is contained in:
parent
cd6395349a
commit
d2bea46dbd
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ using namespace mwm;
|
|||
|
||||
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
|
||||
{
|
||||
if (actionSheet.numberOfButtons == 0 || buttonIndex >= actionSheet.numberOfButtons)
|
||||
if (actionSheet.numberOfButtons == 0 || buttonIndex >= actionSheet.numberOfButtons || buttonIndex < 0)
|
||||
{
|
||||
[actionSheet dismissWithClickedButtonIndex:0 animated:NO];
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue