Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swing 导航栏后退按钮箭头字体Swift_Swing_Uinavigationitem - Fatal编程技术网

Swing 导航栏后退按钮箭头字体Swift

Swing 导航栏后退按钮箭头字体Swift,swing,uinavigationitem,Swing,Uinavigationitem,因此,我设法更改了后退按钮的字体,如中所述 但是现在我有两个箭头(一种方法是创建一个透明图形,并将其设置为Backbutton的背景图像。 因此,您的代码应该如下所示: let backButton = UIBarButtonItem(title: "< back", style: UIBarButtonItemStyle.Plain, target: self, action: nil) backButton.setTitleTextAttributes([NSFontA

因此,我设法更改了后退按钮的字体,如中所述
但是现在我有两个箭头(一种方法是创建一个透明图形,并将其设置为Backbutton的背景图像。 因此,您的代码应该如下所示:

    let backButton = UIBarButtonItem(title: "< back", style: UIBarButtonItemStyle.Plain, target: self, action: nil)
    backButton.setTitleTextAttributes([NSFontAttributeName: UIFont(name: "RobotoCondensed-Light", size: 20)!], forState: UIControlState.Normal)
    backButton.setBackButtonBackgroundImage(UIImage(named: "transparent_1px.png"), forState: UIControlState.Normal, barMetrics: UIBarMetrics(rawValue: 0)!)
    navigationItem.backBarButtonItem = backButton
let backButton=uibarbuttonite(标题:“