finnaly ...
に感謝...あなたの助けが必要あなたの答えはPrasanna、私はそれを使用して非常に多くのアイデアを持っている:) この場合、私はフレームからサイズを使用しないでください、私はテキストビューからcontentSizeを使用し、ここで私が作ったコード:
NSString *head = [textView.text substringToIndex:textView.selectedRange.location];
//--get the size of this part--
CGSize initialSize = [head sizeWithFont:textView.font constrainedToSize:textView.contentSize];
NSUInteger startOfLine = [head length];
NSRange delimiter = [head rangeOfCharacterFromSet:[NSCharacterSet characterSetWithCharactersInString:textView.text] options:NSBackwardsSearch range:NSMakeRange(0, startOfLine)];
//--substring the part after cursor position--
NSString *tail = [head substringFromIndex:delimiter.location];
//--gets the size of this part--
CGSize lineSize = [tail sizeWithFont:textView.font forWidth:textView.contentSize.width lineBreakMode:UILineBreakModeWordWrap];
それは私のために、多分あなたを助けることができるかもしれません、プラサナ