forked from organicmaps/organicmaps
Merge pull request #3682 from igrechuhin/ios7-workaround
[ios] Workaround for ios 7 crash.
This commit is contained in:
commit
53e10e7cf4
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