0
想要設置在模擬器中顯示的圖像的大小,因爲它出現遠大到我已經嘗試了許多事情無濟於事?swift xcode更改尺寸爲navigationItem.leftBarButtonItem = UIBarButtonItem
func CancelButton(){
navigationItem.leftBarButtonItem = UIBarButtonItem(image:
#imageLiteral(resourceName: "HOME BUTTON BLACK").withRenderingMode(.alwaysOriginal), style: .plain, target: self, action: #selector(handleCancel))
}
func handleCancel() {
self.dismiss(animated: true, completion: nil)
}// handleCancel