diff options
author | Vitaly Takmazov | 2017-12-22 03:05:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-12-22 03:05:06 +0300 |
commit | 641332029b473234fd8aec7333d6e988b903e726 (patch) | |
tree | 03d5ef0c395dab5f1fb79dbe22f83d84201f3c3b /Juick/ViewControllers/NewPostViewController.m | |
parent | aa68712497002d46ef5a604bd5e84b268f927049 (diff) |
No need to animate textview resize
Diffstat (limited to 'Juick/ViewControllers/NewPostViewController.m')
-rw-r--r-- | Juick/ViewControllers/NewPostViewController.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Juick/ViewControllers/NewPostViewController.m b/Juick/ViewControllers/NewPostViewController.m index e8c767c..02d810b 100644 --- a/Juick/ViewControllers/NewPostViewController.m +++ b/Juick/ViewControllers/NewPostViewController.m @@ -66,10 +66,8 @@ -(void) keyboardDidShow:(NSNotification *)sender { CGRect keyboardRect = [sender.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; - [UIView animateWithDuration:[sender.userInfo[UIKeyboardAnimationDurationUserInfoKey] doubleValue] animations:^{ - self.bottomConstraint.constant = keyboardRect.size.height - self.view.safeAreaInsets.bottom + self.paddingValue; - [self.view layoutIfNeeded]; - }]; + self.bottomConstraint.constant = keyboardRect.size.height - self.view.safeAreaInsets.bottom + self.paddingValue; + [self.view layoutIfNeeded]; } -(void) keyboardWillHide:(NSNotification *)sender { self.bottomConstraint.constant = self.paddingValue; |