summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;