Skip to content

change the first view controller presented #81

Description

@tharrington

I am about to display my slideout view controller, but I want to display controller at index 3 if the user has never used the app before. Before i present the navigation controller, I tried using this method:

  • (void)switchToControllerTagged:(int)tag andPerformSelector:(SEL)selector withObject:(id)obj

so my code looked like this

// initiate controllers
[slideoutController switchToControllerTagged:3 andPerformSelector:nil withObject:nil];
[self.navigationController pushViewController:slideoutController animated:YES];

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions