views:

896

answers:

1

Hi,

Root view is a UIImage View, it has subviews, those have subviews. My root view will open in landscape i have set both project properties in the project's .plist and have integrated application.statusBarOreintation in applicationDidFinishLaunching and verified that it works.

But all of my subviews are appearing in portrait. How do I change this on my subviews?

Thanks // :)

+1  A: 

Do you have a viewcontroller? What is your shouldAutorotateToInterfaceOrientation returning?

// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || 
      (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}

Without a viewcontroller, you will have to apply a transform to rotate each view you load.

mahboudz
Thanks, that's awesome :)
Spanky