—Added a public method to dismissPresentedViewController;