diff --git a/UIAlertController+Blocks.m b/UIAlertController+Blocks.m index 1a3caa7..55e3b2c 100644 --- a/UIAlertController+Blocks.m +++ b/UIAlertController+Blocks.m @@ -87,7 +87,7 @@ + (instancetype)showInViewController:(UIViewController *)viewController style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){ if (tapBlock) { - tapBlock(controller, action, UIAlertControllerBlocksFirstOtherButtonIndex + i); + tapBlock(controller, action, UIAlertControllerBlocksFirstOtherButtonIndex + (NSInteger)i); } }]; [controller addAction:otherAction];