开发者

getting string bound cocoa

开发者 https://www.devze.com 2023-01-10 13:07 出处:网络
I have an NSString object having string content as \"Abc\". It has font name, type and size as \"Arial开发者_运维知识库\", \"Bold\" and \"12.0\" respectively.

I have an NSString object having string content as "Abc". It has font name, type and size as "Arial开发者_运维知识库", "Bold" and "12.0" respectively.

How can i know the bounding rect of the the said string.


NSString has a boundingRectWithSize:options:attributes: method.

0

精彩评论

暂无评论...
验证码 换一张
取 消