summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-22 03:05:06 +0300
committerGravatar Vitaly Takmazov2017-12-22 03:05:06 +0300
commit641332029b473234fd8aec7333d6e988b903e726 (patch)
tree03d5ef0c395dab5f1fb79dbe22f83d84201f3c3b /Juick
parentaa68712497002d46ef5a604bd5e84b268f927049 (diff)
No need to animate textview resize
Diffstat (limited to 'Juick')
-rw-r--r--Juick/Main.storyboard2
-rw-r--r--Juick/ViewControllers/NewPostViewController.m6
2 files changed, 3 insertions, 5 deletions
diff --git a/Juick/Main.storyboard b/Juick/Main.storyboard
index 130f09d..5c8cc68 100644
--- a/Juick/Main.storyboard
+++ b/Juick/Main.storyboard
@@ -300,6 +300,6 @@
<image name="settings_icon" width="20" height="20"/>
</resources>
<inferredMetricsTieBreakers>
- <segue reference="vj1-M0-h6U"/>
+ <segue reference="gw8-QZ-Hrt"/>
</inferredMetricsTieBreakers>
</document>
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;