Skip to content

Instantly share code, notes, and snippets.

@zorn
Created September 4, 2012 21:19
Show Gist options
  • Save zorn/3626638 to your computer and use it in GitHub Desktop.
Save zorn/3626638 to your computer and use it in GitHub Desktop.
// SSRatingPickerScrollView.m
- (void)layoutSubviews {
[super layoutSubviews];
CGFloat height = [_reviewTextView sizeThatFits:CGSizeMake(self.frame.size.width, 2000.0f)].height + 91.0f;
height = fmaxf(height, 191.0f);
height = height + 216.0f; // add keyboard height
self.contentSize = CGSizeMake(self.frame.size.width, height);
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment