I m new to storyboard, in my application i have story board with name "LeftMenuList" in this i have created table view controller manually and place table view to self.view, now i wan't unwind segue from table view cell selection for root view controller.
For this i read multiple document related to unwind segue.
- https://www.youtube.com/watch?v=Zc8Ez9YfBSM
- http://spin.atomicobject.com/2014/12/01/program-ios-unwind-segue/ etc..
but in every document button's are created using storyboard and for connection just cntr+drag from button to exit.
But as i said earlier my table view is created manually so i m not able connect selected cell to exit for creating unwind segue (go back to login view), so can any buddy help me how can i solved my issue..For more clarification i will attach screen shot.
Code :---
1) In Viewcontroller.m (root View-Login Screen) added below method as i wan't this view on unwind segue:-
-(IBAction)UnwindSegueToRootViewController:(UIStoryboardSegue *)segue
{
}
2) In leftMenuList.m (in this view controller i m having table view cell on-- cell selection(logout) need to go back login screen -- so below is didSelectRowAtIndexPath)
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
self.strSelectedOption = [self.arrOfMenu objectAtIndex:indexPath.row];
if ([self.strSelectedOption isEqualToString:@"Logout"])
{
[self performSegueWithIdentifier:@"UnwindSegueToRootViewController" sender:self];
// [self shouldPerformSegueWithIdentifier:@"UnwindSegueToRootViewController" sender:self];
}
}
And below Screen shot shows identifier connection