i created a submit review action in my application. when a user submits he gets a success alert.
after the success alert i want the application to redirect the user back to the previous page in the application. also my post review page is of type"present modally", so how will i be able to make it drop down after user submitted?
here is my let
this is the message that i view to the user upon submission
let messageVC = UIAlertController(title: "Review submitted successfully!", message: "" , preferredStyle: .actionSheet)
self.present(messageVC, animated: true) {
Timer.scheduledTimer(withTimeInterval: 2.0, repeats: false, block: { (_) in
messageVC.dismiss(animated: true, completion: nil)})}
how can i redirect him back to my tableviewcontroller?