NSMutableString *mstr = [NSMutableString stringWithString:cellTitleLabel.text]; for (int i = 0; i < [cellTitleLabel.text length]; i++) { NSString *temp = [cellTitleLabel.text substringToIndex:i]; if ([temp lengthOfBytesUsingEncoding:NSUTF8StringEncoding] > DETAIL_TITLE_LENGTH_AS_BYTE) { [mstr appendString:@"\n"]; break; } }
0 件のコメント:
コメントを投稿