From 26a8782cf37e23f1a1e58e9889f4764805bcf521 Mon Sep 17 00:00:00 2001 From: Peter Staev Date: Fri, 4 Sep 2015 15:37:55 +0300 Subject: [PATCH] send null instead of empty string for action sheet message If the user wants to display only action sheet buttons w/o any text and he sends null as message, the empty string causes an empty title to be shown above the buttons. Having null instead, completely eliminates the empty space. --- ui/dialogs/dialogs.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/dialogs/dialogs.ios.ts b/ui/dialogs/dialogs.ios.ts index e6a987703..0a29fd597 100644 --- a/ui/dialogs/dialogs.ios.ts +++ b/ui/dialogs/dialogs.ios.ts @@ -445,7 +445,7 @@ export function action(arg: any): Promise { actionSheet.delegate = delegate; actionSheet.showInView(UIApplication.sharedApplication().keyWindow); } else { - var alertController = UIAlertController.alertControllerWithTitleMessagePreferredStyle(options.message, "", UIAlertControllerStyle.UIAlertControllerStyleActionSheet); + var alertController = UIAlertController.alertControllerWithTitleMessagePreferredStyle(options.message, null, UIAlertControllerStyle.UIAlertControllerStyleActionSheet); if (options.actions) { for (i = 0; i < options.actions.length; i++) {