I remove all "red rubber bands" in IB and locate the square UIView exactly in the center. It does not jump when rotating between landscape and portrait modes. When I create the same in my code with
myView.autoresizingMask = UIViewAutoresizingNone;
and make necessary frame adjustments in
-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
it jumps to new position.
Where is a trick?