scrollview滚动

//这个可以滚动到最后一行

    [self.textView scrollRangeToVisible:NSMakeRange(self.textView.text.length, 1)];

    self.textView.layoutManager.allowsNonContiguousLayout = NO;

原文地址:https://www.cnblogs.com/Sunnyheart/p/4990598.html