Clancey / FlyoutNavigation

Other
95 stars 87 forks source link

Slow transition #22

Closed ghost closed 9 years ago

ghost commented 11 years ago

After doing some testing with Flyout noticed that slows with TableView's (UITableViewStyle.Grouped) to finish loading the screen and make the gesture changing to another view Flyout seems that the transition is slow.

    public override void ViewDidLoad () {
    base.ViewDidLoad ();
    this.NavigationController.NavigationBar.Hidden = true;

    navigation = new FlyoutNavigationController ();
    navigation.View.Frame = UIScreen.MainScreen.Bounds;
    View.AddSubview (navigation.View);

    //Menu
    navigation.NavigationRoot = new RootElement ("Home") {
        new Section ("Home") {
            from page in Menu
                select new ImageStringElement(page, UIImage.FromBundle("listicon.png")) as Element
        }
    };

    navigation.ViewControllers = new [] 
    {
        new UINavigationController(new ViewController1(navigation)),
        new UINavigationController(new ViewController2(navigation)),
        new UINavigationController(new ViewController3(navigation)),
        new UINavigationController(new ViewController4(navigation))
    };
}

Where ViewController(N) inherit from UITableViewControllers.

Clancey commented 11 years ago

The transition isn't slow. I have tested it and used it in back on an old iPhone 3g. You must be doing something on view will appear or view did appear that is slow.

Sent from my iPhone

On Apr 30, 2013, at 9:42 PM, Iter notifications@github.com wrote:

After doing some testing with Flyout noticed that slows with TableView's (UITableViewStyle.Grouped) to finish loading the screen and make the gesture changing to another view Flyout seems that the transition is slow.

public override void ViewDidLoad () {
base.ViewDidLoad ();
this.NavigationController.NavigationBar.Hidden = true;

navigation = new FlyoutNavigationController ();
navigation.View.Frame = UIScreen.MainScreen.Bounds;
View.AddSubview (navigation.View);

//Menu
navigation.NavigationRoot = new RootElement ("Home") {
    new Section ("Home") {
        from page in Menu
            select new ImageStringElement(page, UIImage.FromBundle("listicon.png")) as Element
    }
};

navigation.ViewControllers = new [] 
{
    new UINavigationController(new ViewController1(navigation)),
    new UINavigationController(new ViewController2(navigation)),
    new UINavigationController(new ViewController3(navigation)),
    new UINavigationController(new ViewController4(navigation))
};

} Where ViewController(N) inherit from UITableViewControllers.

— Reply to this email directly or view it on GitHub.