For my app rootViewController
is navgationController
.
I found that pushed controller's
-(BOOL)shouldAutorotate
is not getting called.
and
-(NSUInteger)supportedInterfaceOrientations
get called only once.
I have checked correctly in xcode's
project summary (or plist
) for windows all orientation support.
I want these method to get called, as there is some uicontrol positioning code which i want to execute programmatically for orientation change.
I solved this problem by overriding (category) navigation controller's following methods
-(BOOL)shouldAutorotate;
-(NSUInteger)supportedInterfaceOrientations;
I checked which controller is getting pushed and accordingly called respective pushed controller's uicontrol positioning code in Navigation controller's following method
(NSUInteger)supportedInterfaceOrientations;
This is working fine but i dont think this is correct way. Please help me out for better solution.