iOS Question action sheet with empty otheritems, does not work

Albi

Active Member
Licensed User
Longtime User
Hello,
If I try to initialise an action sheet without any otheritems, it doesn't work. If I use an empty string in the list, it returns an option in the action sheet, but without text. (I want just a destructiveitem and a cancelitem)

B4X:
actDelete.Initialize("actDelete", "", "Cancel", "Delete", Array As String(""))
This returns a cancel item, destructive item, and an empty box for other options.

B4X:
actDelete.Initialize("actDelete", "", "Cancel", "Delete", "")
This returns an error (types do not match, and it doesn't compile.
Expected: NSArray, object type: __NSCFConstantString

Maybe this should be in the wishlist?
 
Top