Closed Dragsbaek closed 11 years ago
(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];
} }
How would i use the function to change views created with storyboard?