Say I have two view controllers, A and B. UIView instance viewObject is subview of A in the nib, with frame 0, 0, 100, 100.
Now I execute the following
[UIView animateWithDuration:0.5 animations:^{[viewObject setFrame:CGFrameMake(100, 100, 100, 100)];}];
It worked all fine. But when I call:
[self presentViewController:B animated:YES completion:NULL];
viewObject appears to jump back to the frame before the animateWithDuration:animations: message during the transition of the view controllers.
Likewise when I dismiss B the viewObject is at its position in the nib.
How do I make viewObject stay in the same place?