I am trying to perform segue "programmatically" but it keep giving me an error which says that my view controller has no segue with this id
this is part of my storyboard
this is the method where I perform the segue
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)
{
self.performSegueWithIdentifier("show recipe details" , sender: self)
}
and this is the perform segue method
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?)
{
if(segue.identifier == self.SEGUE_ID)
{
if((sender?.isKindOfClass(RecepieViewController)) != nil)
{
if(segue.destinationViewController.isKindOfClass(RecipeDetailsViewController))
{
print("seguee")
}
}
}
}
what's wrong?
this is my storyboard xml file