From 4f8f00f631877ec9540d4abe3cbac9391be2cb95 Mon Sep 17 00:00:00 2001 From: Viacheslav Kostechko Date: Tue, 9 Jan 2018 20:21:33 +0300 Subject: [PATCH] fixed type warning --- UIAlertController+Blocks.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];