Od czasu aktualizacji xcode nie mogę zmienić nazwy titleTextAttribute
. Teraz, gdy używam następujący kod otrzymuję ten błąd:Zmiana titleTextAttribute w swift
could not find an overload init that accepts this supplied arguments
kod w appDelegate
:
UINavigationBar.appearance().titleTextAttributes = [NSFontAttributeName: UIFont(name: "Ubuntu", size: 17), NSForegroundColorAttributeName:UIColor.whiteColor()]
UIBarButtonItem.appearance().setTitleTextAttributes([NSFontAttributeName: UIFont(name: "Ubuntu-Light", size: 15), NSForegroundColorAttributeName:UIColor.whiteColor()], forState: UIControlState.Normal)
Nate! Nate! Nate! Nate! – rob5408
Więcej informacji: http://stackoverflow.com/questions/27583346/how-can-i-change-the-font-of-the-back-button-for-my-navigation-bar/28347428#28347428 – Vexy