Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

swift change navigation bar title

// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
let attrs = [
  NSAttributedString.Key.foregroundColor: UIColor.white, // changes color
  NSAttributedString.Key.font: UIFont(name: "Futura-Bold", size: 17)! // changes font
]

UINavigationBar.appearance().titleTextAttributes = attrs
Comment

swift show title on navigation bar programmatically

override func viewDidLoad() {
     super.viewDidLoad()
     self.title = "Your title over here"
}
Comment

PREVIOUS NEXT
Code Example
Swift :: swift extension Array of type 
Swift :: swift extension Array where type 
Swift :: replace back button image swift 
Swift :: uitextfield set max length 
Swift :: uibutton swift set title 
Swift :: sort list ios swift 
Swift :: swift function declaration 
Swift :: swift create lazy property 
Swift :: Swift Handling Errors Using do-catch Statement 
Swift :: swiftui refresh view 
Swift :: Modifying Value Types from Method Swift 
Swift :: Swift Add Two Numbers 
Swift :: Create enum of Errors Swift 
Swift :: Swift Symmetric Difference between Two Sets 
Swift :: Swift enum With Switch Statement 
Swift :: parsing to double any data type in swift 
Swift :: Swift Dictionary Inside a Tuple 
Swift :: Initializer Swift 
Swift :: Create a Set in Swift 
Swift :: swift uknow attrubute main 
Swift :: Swift Variables names must start with either a letter 
Swift :: swift computed property 
Swift :: Swift Deinitialization 
Swift :: how to convert a url to string in swift 
Ruby :: ruby struct 
Ruby :: rspec check array without order 
Ruby :: Your Ruby version is 2.6.8, but your Gemfile specified 2.7.5 
Ruby :: ruby hash transform keys 
Ruby :: rails strftime 
Ruby :: find a key in nested hash ruby 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =