Objective c UITextView将单词从2个字符传输到2行

Objective c UITextView将单词从2个字符传输到2行,objective-c,uitextview,Objective C,Uitextview,我有一张聊天桌(信件) 用户文本位于UITextView中 问题在于,如果iPhone4的用户在这里输入2个字符,那么 也将如此 文本创建如下 -(NSAttributedString *)chatStringsMy:(NSString *)string { NSRange rangeBold = [string rangeOfString:string]; NSDictionary *dictBoldText = @{NSFontAttributeName : [UIFont fontW

我有一张聊天桌(信件) 用户文本位于UITextView中 问题在于,如果iPhone4的用户在这里输入2个字符,那么

也将如此

文本创建如下

-(NSAttributedString *)chatStringsMy:(NSString *)string
{
NSRange rangeBold = [string rangeOfString:string];

NSDictionary *dictBoldText = @{NSFontAttributeName : [UIFont fontWithName:@"Arial" size:14.0],

                           NSForegroundColorAttributeName : [UIColor whiteColor]
                           };

NSMutableAttributedString *mutAttrTextViewString = [[NSMutableAttributedString alloc] initWithString:string];
[mutAttrTextViewString setAttributes:dictBoldText range:rangeBold];

return mutAttrTextViewString;
}
在其他iPHone机型上,一切正常。
如何在iPhone 4上解决这个问题?

只有iPhone 4才面临这个问题?@VvkAghera是的(可能是iPhone 4S)在上面所有其他iPhone 5上(到iPhone 6s)一切都很好文本视图的宽度自动取决于内容,对吗?