Sunday 15 July 2012

ios - Customizing the NavigationBar using Swift -



ios - Customizing the NavigationBar using Swift -

when seek adding custom attributes navigationbar, error: "could not find overload '/' accepts supplied arguments"...this started occurring recent xcode update. help appreciated. thanks!

navigationcontroller?.navigationbar.titletextattributes = [nsfontattributename: uifont(name: "avenirnext-bold", size: 30), nsforegroundcolorattributename: uicolor(red: (102/255.0), green: (45/255.0), blue: (145/255.0), alpha: 1.0)]

the problem uifont(name: "avenirnext-bold", size: 30) returns optional now. (as correctly state, started, in xcode 6.1.) need disclose (put exclamation mark after it) in order utilize in attributes dictionary.

ios swift uinavigationbar

No comments:

Post a Comment