EXC_BAD_ACCESS EXC_I386_GPFLT while click on button
i have a UIViewController with UITableView , when the tableView is empty i want to show another view so i am using this [self.tableView setHidden:YES]; NoKidsViewController *noKids = [self.storyboard instantiateViewControllerWithIdentifier:@"NoKidsView"]; [self.view addSubview:noKids.view]; all is fine, i'm able to see the view. but when i tap on one of the buttons in it i'm getting the EXC_BAD_ACCESS EXC_I386_GPFLT error. //NoKidsViewController - (IBAction)addNewKid:(id)sender { AddKid *addKidController = [self.storyboard instantiateViewControllerWithIdentifier:@"AddKid"]; [self