我想让后退按钮带有“let barAppearace = UIBarButtonItem.appearance()barAppearace.setBackButtonTitlePositionAdjustment(UIOffsetMake(0, -60), for:UIBarMetrics.default)有了这个,我删除了文本,但如何在“ 最佳答案 let backButton = UIBarButtonItem(image:UIImage(named: "ic_authors_detail_back.png"), style:.Plain, target:self, action:"backButtonPressed");backButton.tintColor = UIColor(hexString: "#ffffffff")let leftBarButtonsArray = [backButton]navigationItem.leftBarButtonItems = leftBarButtonsArray这是在导航栏上添加按钮的代码。希望这会有所帮助关于ios - 将图像添加到导航栏后退按钮,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41345215/ 10-14 20:07