Create simple action method and connect it to storyboard.
Try below code
- (IBAction)actionDismiss:(id)sender {
[self dismissViewControllerAnimated:NO completion:nil];
}
Select you segue and goto attribute inspector
and set you custom class name in this case "Mycustomsegue"