Skip to content

Instantly share code, notes, and snippets.

@longlongjump
Created April 25, 2013 13:02
Show Gist options
  • Save longlongjump/5459516 to your computer and use it in GitHub Desktop.
Save longlongjump/5459516 to your computer and use it in GitHub Desktop.
//fraking hack to make textview scroll to make last lines visible
if (self.frame.size.height > old_frame.size.height)
{
self.text = [self.text stringByAppendingString:@"A"];
dispatch_async(dispatch_get_current_queue(), ^{
self.text = [self.text substringToIndex:self.text.length - 1];
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment