问题描述:

This question already has an answer here:

  • How to hide title/message frame in a UIAlertController?

    3 answers

网友答案:

"title" is an optional value, if you pass nil instead of the empty string, it will get rid of the title area.

let alert:UIAlertController = UIAlertController(title: nil ,message: nil, preferredStyle: UIAlertControllerStyle.ActionSheet)

相关阅读:
Top