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 iterate through string 
Swift :: swift array remove 
Swift :: swift add two arrays 
Swift :: how can i find range of a string in another string swift 
Swift :: how to get the path of selected PDF/doc from file manager in ios swift programmatically 
Swift :: add callbacks to view swiftui 
Swift :: timer in swift stack overflow 
Swift :: response.result.value alamofire 5 
Swift :: Swift Character Example 
Swift :: Function Inside Swift Struct 
Swift :: view will appear 
Swift :: swift make enum inspectable 
Swift :: swift initialize array with size 
Swift :: Swift Half-Open Range 
Swift :: Swift Omit Argument Labels 
Swift :: move view controller to make space for keyboard swift 5 
Swift :: swiftui divider remove padding 
Swift :: Swift is case-sensitive. So A and a are different variables 
Swift :: Swift Function With inout Parameters 
Swift :: access tuple elements 
Swift :: how to call another view controller method when button click from another ios swift 
Swift :: Swift Loop Statements 
Swift :: view rounded corners swift 
Swift :: swift 1 to n array 
Swift :: print 1 line swift 
Swift :: while loop swift 
Ruby :: rails delete child on parent delete 
Ruby :: rspec expect to receive multiple times 
Ruby :: how to add uniqueness in rails migration 
Ruby :: rails destroy not working 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =