if you are getting Dictionary for bodyParts then you should use like this:
e.g.
NSDictionary *bodyparts; //containg data from database
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
let tblView = self.storyboard?.instantiateViewControllerWithIdentifier("Identifier") as UITableViewController
switch(indexPath.row)
{
//data is array of tableviewcontorller
case 0:
tblView.Data = [bodyparts objectForKey:@"Arms"];//if You are getting array for key "Arms"
break;
case 1:
tblView.Data = [bodyparts objectForKey:@"Legs"];
break;
and so on....
default:
break;
}
}
you have to set storyboard identifier in storyboard