Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

uiviewcontroller title color

Swift 5

let titleAttributes = [
  NSAttributedString.Key.foregroundColor: UIColor.red
]

or 

let textAttributes: [NSAttributedString.Key: Any] = [
  .foregroundColor: UIColor.red
]

let navBar = navigationController?.navigationBar
navBar.titleTextAttributes = titleAttributes
Comment

PREVIOUS NEXT
Code Example
Swift :: Swift convenience Initializer 
Swift :: spacing in uitextfield 
Swift :: Swift break statement with nested loops 
Swift :: How to create a typealias? 
Swift :: Swift Code Reusability 
Swift :: rust How to pass out parameter to function from Swift FFI 
Swift :: swift converting time string to number 
Swift :: Associate Multiple Values Swift 
Swift :: dfghbghjjmyuhjtdcfbjj 
Swift :: crud php native with navicat 
Swift :: xcode macosx have view resize when window size changed 
Swift :: Swift Comparison Operators 
Swift :: Swift Find Number of Array Elements 
Swift :: Swift Labeled Statement with continue 
Swift :: dynamic table view height without scrolling 
Swift :: Swift Deinitialization 
Swift :: Compare AnyObjects en Swift 
Swift :: cifilter image preserve orientation 
Ruby :: base64 decode ruby 
Ruby :: check current route rails 
Ruby :: ruby hash map key value 
Ruby :: devise redirectt after sign up 
Ruby :: ruby regexp match all 
Ruby :: ruby array to string with commas 
Ruby :: button submit rails with font awesome 
Ruby :: rails scopes 
Ruby :: ruby group by 
Ruby :: rails render head: :ok 
Ruby :: dictionary ruby 
Ruby :: validations rails integer suprior to 0 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =