This Fixes scroll to top and resigning first responder

Reviewed By: tadeuzagallo

Differential Revision: D2713488

fb-gh-sync-id: 99b2646f7bf8a3ee889bbb856c298beed6817321
This commit is contained in:
Nick Lockwood 2015-12-04 06:59:14 -08:00 committed by facebook-github-bot-4
parent dff8f53664
commit dde55c30ea
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@
_textView.delegate = self; _textView.delegate = self;
_scrollView = [[UIScrollView alloc] initWithFrame:CGRectZero]; _scrollView = [[UIScrollView alloc] initWithFrame:CGRectZero];
_scrollView.scrollsToTop = NO;
[_scrollView addSubview:_textView]; [_scrollView addSubview:_textView];
_previousSelectionRange = _textView.selectedTextRange; _previousSelectionRange = _textView.selectedTextRange;