Questions tagged [dismiss]

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

By calling this method in a button click listener, the user can close a dialog and continue using the application.

633 questions
6
votes
1 answer

How to prevent back button from dismissing the keyboard in flutter?

I want to set the keyboard to be always opened in the chat page and should not be dismissable by the back button. The WillPopScope() widget is only preventing the back button from navigating back to the previous page however is still dismissing the…
6
votes
2 answers

How to dismiss a presenting view to the root view of tab view in SwiftUI?

I'm using TabView on my home page. Let's just say I have 4 tabs. On second tab, i can go to another view using NavigationLink and I go to another 2 views using NavigationLink. Then on the latest view, there is a button to present a view and i use…
Aldo Sugiarto
  • 197
  • 3
  • 20
6
votes
1 answer

Get keyboard height while being dismissed interactively with scroll

I'm creating a chat interface and like WhatsApp, I have created a "scrollToBottom" button, that appears when the user scrolls the collection with a certain distance. This button follows perfectly the keyboard frame when the keyboard appears and when…
gutiago
  • 129
  • 3
6
votes
3 answers

How to dismiss Snackbar when user does any action?

I can show snackbar like this. Snackbar snackbar = Snackbar.make(this.findViewById(android.R.id.content), "snackbar", Snackbar.LENGTH_INDEFINITE) .setAction("action", new View.OnClickListener() { @Override public void…
illusionJJ
  • 419
  • 1
  • 7
  • 23
6
votes
3 answers

Detect when a UIViewController has been dismissed by the remote's menu button in tvOS

I am working on a Apple TV app (tvOS) where the first view controller open a second view controller via a segue. When I choose an option on the second view controller it execute an unwind action on the first view controller. My problem is when I…
Atika
  • 1,560
  • 18
  • 18
6
votes
1 answer

Android Keyboard Dismissal

I have several EditText objects in an app I'm working on, and need to learn how to dismiss the keyboard when the user is done entering text, so that buttons being blocked by the keyboard on the screen are visible again, and ready for action. In…
embersofadyingfire
  • 523
  • 1
  • 4
  • 16
6
votes
3 answers

IOS: dismiss two viewController

I have three viewController First, Second and Third from Second to open Third I use Third *third = [[Third alloc]initWithNibName:@"Third" bundle:nil]; [self presentModalViewController:third animated:YES]; [third release]; Now I want return from…
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
5
votes
4 answers

iOS SDK: Dismiss keyboard when a button gets clicked?

How can I dismiss the keyboard when the user clicks a button? A short example for a better understanding: the user edits some text in some textfields and at the end he doesn't click "Done" or smething else on the keyboard, but he clicks on an button…
5
votes
2 answers

How do you dismiss a UIActionSheet from the App Delegate?

I'm trying to dismiss a UIActionSheet from the app delegate so that it doesn't show again when you return from background. I've tried to dismiss the action sheet from the viewDidUnload or viewDidDisappear methods in the subclass view controller, but…
Dylan Gattey
  • 1,713
  • 13
  • 34
5
votes
1 answer

flutter navigator pop dialog - error - Unhandled Exception: NoSuchMethodError: The method 'findAncestorStateOfType' was called on null

I have got this piece of pop up Dialog() code in flutter https://gist.github.com/axilaris/2b186c7a4073671128e8cacc09dfc384, if you check out the code somewhere right at the bottom class PurchaseDialog extends StatefulWidget with NavigationStates…
Axil
  • 3,606
  • 10
  • 62
  • 136
5
votes
1 answer

PickerView Keyboard & Tap to Dismiss SwiftUI

Xcode 11.2.1, Swift 5.0 I want to try and replicate this feature that Apple has in their health app: The feature includes a couple of things: PickerView presented sort of like a keyboard on tap. PickerView is dismissed on tap outside. So far, I…
Noah Wilder
  • 1,656
  • 20
  • 38
5
votes
2 answers

iPad: how to close UIPopoverController from within the "popped" ViewController

I'm converting and iphone project to ipad. On iphone I have a mainViewController that opens a loginViewController using addSubView. On the iPad I would like to display that loginViewController in a popover. so I did something…
Johann
  • 12,158
  • 11
  • 62
  • 89
5
votes
0 answers

Xamarin Android: How to create an Undo Bar

I want to know how to create an undo bar for Xamarin Android something like this. I used this code created by Dan Ardelean for Xamarin Android who base the code from Roman Nurik example for android, but it doesn't work for me. I get this…
JotaPardo
  • 817
  • 9
  • 27
5
votes
5 answers

How to dismiss the two or more dismissModalViewController?

I need to dismiss the two modal view controllers, I know how to pop two or more view controllers UINavigationController* navController = self.navigationController; NSArray *array=[navController viewControllers]; UIViewController*…
Madan Mohan
  • 8,764
  • 17
  • 62
  • 96
5
votes
6 answers

Click on UIAlertView crashes app if view is dismissed

A UIAlertView is displayed if an error occurs. But in the meantime the view on which the UIAlertView were called has been dismissed (and therefore released). If the user clicks on OK the app crashes because a message to a released instance is sent.…
testing
  • 19,681
  • 50
  • 236
  • 417