Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在按下按钮时增加文本视图的大小。
为此,我需要知道字体大小是什么。我怎么知道?
我会这样做:
CGFloat *newsize = (// here the fontsize + 1); textView.font = [UIFont fontWithName:@"Verdana" size:newsize];
for(int i;i<[最大尺寸];i++) {
CGFloat *newsize = i; textView.font = [UIFont fontWithName:@"Verdana" size:i];
}