草庐IT

lbNavTitle

全部标签

swift - 如何在 Xcode 中左对齐导航栏的标题?

我一直在尝试以下方法以使导航栏的标题左对齐:在AppDelegate.swift文件中:funcapplication(_application:UIApplication,didFinishLaunchingWithOptionslaunchOptions:[UIApplicationLaunchOptionsKey:Any]?)->Bool{//Overridepointforcustomizationafterapplicationlaunch.UINavigationBar.appearance().barTintColor=UIColor.redUINavigationBar

swift - 如何在 Xcode 中左对齐导航栏的标题?

我一直在尝试以下方法以使导航栏的标题左对齐:在AppDelegate.swift文件中:funcapplication(_application:UIApplication,didFinishLaunchingWithOptionslaunchOptions:[UIApplicationLaunchOptionsKey:Any]?)->Bool{//Overridepointforcustomizationafterapplicationlaunch.UINavigationBar.appearance().barTintColor=UIColor.redUINavigationBar