Top "Dismiss" questions

For questions related to calling the "dismiss" method in a button click listener.

Receive result from DialogFragment

I am using DialogFragments for a number of things: choosing item from list, entering text. What is the best way …

android dialog android-fragments fragment dismiss
How to dismiss AlertDialog in android

I created AlertDialog that contains 4 buttons OptionDialog = new AlertDialog.Builder(this); OptionDialog.setTitle("Options"); LayoutInflater li = (LayoutInflater) this.getSystemService(Context.…

android android-alertdialog dismiss
How to dismiss AlertDialog.Builder?

In the following code below, how do I dismiss the alert box? I don't want to cause a memory leak. …

android memory dialog alert dismiss
single function to dismiss all open view controllers

I have an app which is a single view application. I have a navigation controller linked up to all child …

ios swift uiviewcontroller dismiss
Dismiss AlertDialog.Builder from OnClick

I'm trying to make it so that a dialog pops up for users which has two buttons in the body …

android android-alertdialog dismiss
How to dismiss a DialogFragment when pressing outside the dialog?

I am using a DialogFragment, and while I have successfully set an image to close (i.e. dismiss) the dialog …

android fragment dismiss
iPhone - dismiss multiple ViewControllers

I have a long View Controllers hierarchy; in the first View Controller I use this code: SecondViewController *svc = [[SecondViewController alloc] …

iphone uiviewcontroller dismiss
Dismissing iPad UIPopoverController when BarButtonItem is pushed while it's open

Using a split view on the iPad, I have the following code: - (void) splitViewController:(UISplitViewController *)svc willHideViewController:(UIViewController *)aViewController …

ipad user-interface uisplitviewcontroller uipopovercontroller dismiss
Dismiss more than one view controller simultaneously

I'm making a game using SpriteKit. I have 3 viewControllers: selecting level vc, game vc, and win vc. After the game …

ios swift viewcontroller dismiss
How to dismiss a modal VC with fade out animation?

I am using the following code in my presenting VC to fade in the child modal VC, and this works …

ios animation modalviewcontroller fadeout dismiss