tmp
Thursday, October 10, 2013
deprecated sizeWithFont
sizeWithFontがdeprecatedなので置き換え ```objectivec //[label.text sizeWithFont:label.font constrainedToSize:container lineBreakMode:label.lineBreakMode]; [label.text boundingRectWithSize:container options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:label.font} context:nil]; //[label.text sizeWithFont:label.font]; [label.text sizeWithAttributes:@{NSFontAttributeName:label.font}]; ```
1 comment:
Roger Springer
January 31, 2022 at 1:14 PM
Thank yyou
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Thank yyou
ReplyDelete