Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing views when using storyboards #9

Closed
Dragsbaek opened this issue Sep 18, 2013 · 1 comment
Closed

Changing views when using storyboards #9

Dragsbaek opened this issue Sep 18, 2013 · 1 comment

Comments

@Dragsbaek
Copy link

How would i use the function to change views created with storyboard?

  • (void)sidebar:(RNFrostedSidebar *)sidebar didTapItemAtIndex:(NSUInteger)index {
    NSLog(@"Tapped item at index %i",index);
    if (index == 1) {
    //code to change view
    [sidebar dismiss];
    }
    }
@ashishfission
Copy link

  • (void)sidebar:(RNFrostedSidebar *)sidebar didTapItemAtIndex:(NSUInteger)index {
    NSLog(@"Tapped item at index %i",index);
    if (index == 0) {
    [sidebar dismiss];
    [self performSegueWithIdentifier:@"View1" sender:self];

    }
    if (index == 1) {
    [sidebar dismiss];
    [self performSegueWithIdentifier:@"view2" sender:self];

    }
    if (index == 2) {
    [sidebar dismiss];
    [self performSegueWithIdentifier:@"view3" sender:self];

    }

    if (index == 3) {
    [sidebar dismiss];
    [self performSegueWithIdentifier:@"view4" sender:self];

    }
    if (index == 4) {
    [sidebar dismiss];
    [self performSegueWithIdentifier:@"view5" sender:self];

    }
    }

@rnystrom rnystrom closed this as completed Oct 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants