IOS Development Default font is Heiti SC, The "blackbody-Jane" that we commonly use.
After a period of time, you will find that the font is too monotonous, then how to add new fonts in iOS development, here to teach you two ways.
1. Use the system's own fonts
Search fonts, it is not difficult to find that there are many fonts in the system, and these fonts are also available.
These fonts can be set by code only, or they can be set directly, in a simple way:
Set the Text property to attributed, and then select the system font you want to be OK.
2. Use your own fonts downloaded from the Web
First download your favorite fonts from the Internet, drag the downloaded fonts into the current project
Configuring the Info.plist File
AddRow, "Fonts provided by Application", adding font information
You can set the font by code
uifont* Afont = [uifont fontwithname:fontname size:];
FontName is the name of the font you downloaded
Of course, you can also refer to fonts directly in Xib
So the font is set to succeed.
How to add a new font to iOS development