Clancey / FlyoutNavigation

Other
95 stars 87 forks source link

Nav bar height not resized in sample app #20

Closed lencharest closed 11 years ago

lencharest commented 11 years ago

In the FlyoutNavigationSample app, the nav bar height does not shrink/grow when the iPhone is rotated to/from landscape orientation. The nav bar behavior can be corrected by introducing the concept of a "target view controller" and changing the FlyoutNavigationController as follows:

  1. Add the gesture recognizer to the target controller, rather than the flyout controller.
  2. In NavigationItemSelected, add the selected controller (and its View) to the target controller (and its View). E.g.,

    this.TargetViewController.View.AddSubview (mainView); this.TargetViewController.AddChildViewController (CurrentViewController);

Clancey commented 11 years ago

Pull request?