RoomVC: Make the activity indicator follow the keyboard

This avoids that the indicator view hides the text input.
This commit is contained in:
manuroe
2017-06-08 10:52:03 +02:00
parent 37cbeb31dc
commit eabc946514
+6
View File
@@ -930,6 +930,12 @@
});
}
// Make the activity indicator follow the keyboard
// At runtime, this creates a smooth animation
CGPoint activityIndicatorCenter = self.activityIndicator.center;
activityIndicatorCenter.y = self.view.center.y - keyboardHeight / 2;
self.activityIndicator.center = activityIndicatorCenter;
}
- (void)dismissTemporarySubViews