You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example below, I use resURL to indicate the URL to "SomeFontName" font.
In the last case, the UIFont is, unexpectedly, not nil, meaning the resources are not fully released.
varfont:UIFont!
font =UIFont(name:"SomeFontName", size:30)// font == nil, as espectedElefont.eat(at: resURL)
font =UIFont(name:"SomeFontName", size:30)// font != nil, as espectedElefont.releaseEverything()
font =UIFont(name:"SomeFontName", size:22)// font == nil, as espected
font =UIFont(name:"SomeFontName", size:30)// font != nil, error!
The text was updated successfully, but these errors were encountered:
After some investigation, it seems that the object returned in the last step is the same as in the second step, meaning the system returns a cached value.
In the example below, I use
resURL
to indicate the URL to "SomeFontName" font.In the last case, the UIFont is, unexpectedly, not nil, meaning the resources are not fully released.
The text was updated successfully, but these errors were encountered: