Slide 9
Slide 9 text
- (void)scrollRangeToVisible:(NSRange)range
{
[super scrollRangeToVisible:range];
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) {
if (self.layoutManager.extraLineFragmentTextContainer != nil
&& self.selectedRange.location == range.location) {
CGRect caretRect = [self caretRectForPosition:self.selectedTextRange.end];
[self scrollRectToVisible:caretRect animated:NO];
}
}
}
4VCDMBTTJOHQBUDI