Ok here is the structure of the app:
in delegate, i add rootViewController as subview to the window:
RootViewController *rootView = [[RootViewController alloc] init];
[window addSubview:rootView.view];
In rootViewController there is an inteface I crate programmatically (a brunch of buttons like the springboard), and is currently working only in portrait mode.
When I add:
- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
NSLog(@"we are here");
return YES;
}
nothing happens, its called just when the app runs, and not when I change orientations.
So what I miss ? How I will make my View controller rotate based on orientation?
thanks for any help.