Overview
The
You do not create UIFont
class provides the interface for getting and setting font information.
The class provides you with access to the font’s characteristics and
also provides the system with access to the font’s glyph information,
which is used during layout. You use font objects by passing them to
methods that accept them as a parameter. UIFont
objects using the alloc
and init
methods. Instead, you use class methods of UIFont
, such as preferredFontForTextStyle:
,
to look up and retrieve the desired font object. These methods check
for an existing font object with the specified characteristics and
return it if it exists. Otherwise, they create a new font object based
on the desired font characteristics.Font objects are immutable and so it is safe to use them from multiple threads in your app.
Read more: https://developer.apple.com/library/ios/documentation/uikit/reference/UIFont_Class/Reference/Reference.html
No comments:
Post a Comment