I'm trying to animate all views up when showing the keyboard to avoid overlap.
However, this old trick no longer seems to work:
for (UIView *subview in self.view.subviews){
CGRect r = subview.frame;
r.origin.y += yOffSet;
[UIView animateWithDuration:duration animations:^{subview.frame = r;} completion:block];
}
Any idea why?
==== UPDATE
These subviews don't animate on my iPhone6 running iOS8. They do however on my iPhone4 running iOS 7.1.2. Both use AutoLayout.