gdavis / FGallery-iPhone

Objective-C based gallery for iPhones
583 stars 144 forks source link

Modified to preserve UINavigationController's defined behavior; otherwis... #26

Closed mgwalker closed 12 years ago

mgwalker commented 12 years ago

The existing code only allows rotation on the FGalleryViewController - all other view controllers in the navigation stack will only rotate into portrait (though they can appear in landscape if a FGalleryViewController is popped from the stack while in landscape). This fix will walk the navigation stack to see if the stacked view controllers all support the specified orientation. If so, then the navigation controller will allow it; otherwise, it defaults to the current code and only allows portrait.

gdavis commented 12 years ago

Cool, thanks!