![](/img/trans.png)
[英]How to set different font size for UILabel for different iPhones in storyboard
[英]How to Set Custom Font to UILabel in Storyboard
我想在情節提要中將自定義字體設置為UILabel。 我有.ttf文件的字體。 我在Google上進行了搜索,每個人都以編程方式設置字體。
好消息是,這是添加到界面生成器在Xcode 6中的新功能是記錄在這里
將您的IBOutlet連接到Label,您可以像這樣進行設置,
lblHeading.font = [UIFont fontWithName:@"ApexNew-Bold" size:17];
in the above code ApexNew-Bold is custom font and you need to add it in Plistfile.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.