So I have a pop-up UITableView with a list of options but I want to make it so that when I click on one of the options it opens up another popup view next to it with sub-options.
Right now what I'm trying to do is create a separate UITableView for each of the sub-option lists and then trying to display them when an original option button is clicked. However this approach is causing my project to crash before it even gets a chance to open (and XCode doesn't really explain why or where the bug is)
But I feel like there must be an easier and much more intuitive way to do this. If anyone here knows, it would help me out a lot.
EDIT: My error is in the ViewDidLoad method inside my first TableView class:
@interface PopOverScreen (){
PopOverScreen *backgroundScreen;
UIPopoverController *backgroundController;
}
- (void)viewDidLoad
{
[super viewDidLoad];
self.optionsArray =
[NSArray arrayWithObjects:@"Buttons", @"Background", nil];
backgroundScreen = [[PopOverScreen alloc] initWithNibName:@"PopOverScreen" bundle:nil];
//*******THIS GIVES BAD ACCESS******//
backgroundController = [[UIPopoverController alloc] initWithContentViewController:backgroundScreen];
}