gpt4 book ai didi

ios - 如何使警报操作无标题

转载 作者:搜寻专家 更新时间:2023-11-01 05:53:35 25 4
gpt4 key购买 nike

<分区>

我想从警报操作中删除标题部分。制作标题字符串 "" 不会删除标题部分

@IBAction func addImage(sender: AnyObject!) {

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

let cameraAction = UIAlertAction(title: "Take Photo", style: UIAlertActionStyle.Default)
{
UIAlertAction in
self.openCamera()
}
let gallaryAction = UIAlertAction(title: "Choose Photo", style: UIAlertActionStyle.Default)
{
UIAlertAction in
self.openGallary()
}
let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.Cancel)
{
UIAlertAction in

}

// Add the actions
alert.addAction(cameraAction)
alert.addAction(gallaryAction)
alert.addAction(cancelAction)

// Present the controller
self.presentViewController(alert, animated: true, completion: nil)

}

这是我得到的:

enter image description here

如何一起删除标题部分?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com