Instead of calling properties change as per below Check orientation as below in viewWillApear method
UIInterfaceOrientation orientation=[[UIApplication sharedApplication] statusBarOrientation];
[self willAnimateRotationToInterfaceOrientation:orientation duration:1];