InterfaceBuilder / Swift:后退按钮图像

时间:2018-09-28 13:21:00

标签: swift xcode interface builder uinavigation

是否可以将UINavigationViewControllers中的backbutton-image添加到自己的(自定义)按钮上?

Custom Button without Image Image I want to add

有一个简单的解决方案吗?

1 个答案:

答案 0 :(得分:0)

self.navigationController?.navigationBar.backIndicatorImage = UIImage.init(named: "backImage")
self.navigationController?.navigationBar.backIndicatorTransitionMaskImage = UIImage.init(named: "backImage")