iOS UIFont caching?
问题 I am trying to figure out if I should cache [UIFont fontWithName:@"myfont" size:24]. I am reusing this font in many places. I am wondering if iOS is already caching this for me because font caching is very common at OS level. Can someone comment on this? Thanks. 回答1: Last time I checked, system fonts were cached (i.e. calling [UIFont systemFontOfSize:foo] twice returned you the same object). I'm not sure how often the cache flushes, but it would seem very silly to not cache fonts, since they