Swift - UINavigation title 修改

func setupNavigationView() {

        self.navigationController?.navigationBar.backgroundColor = UIColor.white
        self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedStringKey.foregroundColor:UIColor.white,
                                                                        NSAttributedStringKey.font: UIFont.systemFont(ofSize: 18)]
    }

你可能感兴趣的:(Swift - UINavigation title 修改)