NSString *vocabulary = [dict objectForKey:VOCABULARY];
CGSize maximumLabelSize = CGSizeMake(200 ,320);
CGSize expectedLabelSize = [vocabulary sizeWithFont:
[UIFont fontWithName:@"Helvetica" size:18]
constrainedToSize:maximumLabelSize
[UIFont fontWithName:@"Helvetica" size:18]
constrainedToSize:maximumLabelSize
lineBreakMode:UILineBreakModeWordWrap];
沒有留言:
張貼留言