See Also: UITextAttributes Members
Typically developers create an instance of this class and fill out the various properties to configure the desired text attributes.
For example, the following code can be used to change the style of the UINavigationBar:
C# Example
var attrs = new UITextAttributes () { Font = UIFont.FromName ("Chalkduster", 20), TextColor = UIColor.Red, TextShadowColor = UIColor.Black, TextShadowOffset = new UIOffset (6, 6) }; myNavController.NavigationBar.SetTitleTextAttributes (attrs);
You can use code-completion inside the constructor for UITextAttributes without having to remember the properties that you want to set. The above sample renders like this:
As of iOS5, you can set the text attributes on the following items: UIKit.UIBarItem, UIKit.UINavigationBar, UIKit.UISearchBar and UIKit.UISegmentedControl.