When using a UIAlertController
, if I want to present a UIActionSheet
with an empty title and an empty message, the frame for the expected placement of the title and/or message remains.
How do I change this so that I only present an ActionSheet
that reads:
Settings
Sign out
Cancel
?
Thanks!
When I create a UIAlertController with this code I don't have the title spacing.
[UIAlertController alertControllerWithTitle:nil
message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
Are you passing in nil for the title and message or empty strings?