Possible issue in MoPub iOS SDK

mopub
fabric
bug
sdk

#1

dismissWithClickedButtonIndex: methods should use the cancel button index to be safe.

Inside of MPGlobal.m
change: [self.alertView dismissWithClickedButtonIndex:0 animated:YES];
to: [self.alertView dismissWithClickedButtonIndex:self.alertView.cancelButtonIndex animated:YES];

Inside of MPAdBrowserController.m
change: [self.actionSheet dismissWithClickedButtonIndex:0 animated:YES];
to: [self.actionSheet dismissWithClickedButtonIndex:self.actionSheet.cancelButtonIndex animated:YES];

thanks. :slight_smile: