If you are using
[self presentViewController:yourVC animated:YES completion:nil];
to present your View Controller, then you should use
[self dismissViewControllerAnimated:YES completion:nil];
to dismiss your present View Controller and to go back to the last View Controller.