简体   繁体   中英

Custom fonts are slowing my iOS app

How can make my app loads faster with custom fonts?

My simple iOS app needs 12 seconds to start. I used Xcode Instruments and I found that was because of the custom fonts that I used. If I run my app without this fonts - it loads in about 1,5 seconds. Custom fonts were used in TableView cell - two times in each. I had about 30 cell in this TableView.

I have only 3 fonts - 600 kb total.

Please try to install these fonts in your system and delete your fonts from your code. After that again add those fonts in your code and make sure fonts name and extension(.ttf) should be same on file folder and .plist file. I hope above process will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM