How to hide title/message frame in a UIAlertController?

后端 未结 5 646
粉色の甜心
粉色の甜心 2020-12-24 05:02

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

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 05:24

    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?

提交回复
热议问题