【发布时间】:2018-04-10 12:57:46
【问题描述】:
我有这个代码:
func alertBox(txt: String){
let ac = UIAlertController(title: "MyTtle" , message: "More information in my website: ", preferredStyle: .alert)
let ramkaNaObrazek = CGRect(origin: CGPoint(x: 10, y: 10), size: CGSize(width: 30, height: 30))
let ikonaAlertu = UIImageView(frame: ramkaNaObrazek)
ikonaAlertu.image = UIImage(named: "modal_podpowiedz")
ac.view.addSubview(ikonaAlertu)
ac.addAction(UIAlertAction(title: "Ok" , style: .cancel, handler: { (action: UIAlertAction!) in
}))
present(ac, animated: true)
}
我想在此文本之后添加:“我的网站中的更多信息:”+ www - 指向我的网站的链接 (http://www.myname.pl)。
我该怎么做?
【问题讨论】:
标签: ios swift uialertcontroller