裁剪字符- iOS11 -警报对话框。如何修复它?有人知道为什么会发生这种情况吗?

func settingsButtonPressed() {
let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
let closeAction = UIAlertAction(title: "Anuluj", style: .cancel) { (action) in
}
alert.addAction(closeAction)
let restorePurchases = UIAlertAction(title: "Przywróć zakupy", style: .default) { (action) in
self.restorePurchases()
}
alert.addAction(restorePurchases)
let refreshCatalogs = UIAlertAction(title: "Odśwież", style: .default) { (action) in
self.collectionView.reloadData()
}
alert.addAction(refreshCatalogs)
let delPubs = UIAlertAction(title: "Usuń publikacje", style: .destructive) { (action) in
self.deletePublications()
}
alert.addAction(delPubs)
present(alert, animated: true, completion: nil)
}发布于 2018-03-22 05:07:22
不能繁殖。我运行了与您完全相同的代码(当然,去掉了处理程序中的调用),我看到的是:

我的建议是:在一个普通的项目中只尝试代码的这一部分,说服自己这应该是可行的。然后开始思考你真正的应用程序有什么不同。也许你对字体或外观的处理方式导致了这个问题。
https://stackoverflow.com/questions/49416347
复制相似问题