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
17
votes
5 answers

dismiss current view controller AFTER presenting new view controller - swift

I'm trying to dismiss a VC and present a new VC. but I don't want old VC to exist anymore. I use the code below to dismiss current VC and present new one. but this way, there's a time interval between dismiss and present. I don't want the user to…
Hos Ap
  • 1,168
  • 2
  • 11
  • 24
16
votes
4 answers

React-native dismiss Keyboard when focus out / clicked somewhere else, outside textfield

I'm new to react-native. I have a textfield(Input). I want to the Keyboard to be dismissed when user clicks somewhere else except input field. I tried several solutions suggested here like TouchableWithoudFeedback, but they did not work. Also, the…
Ali Zeynalov
  • 2,867
  • 8
  • 30
  • 54
16
votes
4 answers

Dismiss ViewController after transition to release memory

I want to free up memory my ViewController used after dismissing it. I use the following code to present the new ViewController and dismiss the old one: let sB: UIStoryboard = UIStoryboard(name: "Main", bundle: nil) let newVC: UIViewController =…
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174
15
votes
3 answers

SwiftUI - How to close the sheet view, while dismissing that view

I want to achieve the function. Like, "Look up" view that is from Apple. My aim is when the sheet view push another view by navigation, the user can tap the navigation item button to close the sheet view. Like, this below gif. I try to achieve this…
Jerry Lee
  • 823
  • 2
  • 7
  • 13
15
votes
2 answers

Dismiss pushed view controller

So I have a view controller which I display as follows: func showProfileForTrainer(trainer: Trainers) { let viewPTProfileVC = ViewPTProfileVC() viewPTProfileVC.trainer = trainer …
Doto Pototo
  • 686
  • 2
  • 9
  • 19
15
votes
3 answers

Why is onResume method of a Fragment never fired after dismissing a DialogFragment which was launched from the Fragment?

I am going to explain my problem as short as possible. I have a Fragment called FragmentA which displays a DialogFragment after clicking on a specific button. public class FragmentA extends Fragment implements OnClickListener { ... …
15
votes
2 answers

Alert dismissing using Twitter Bootstrap is not working?

I'm using Google Chrome. Using Twitter Bootstrap, I want to add a simple alert, unfortunately the alert is not dismissing when the x is pressed! Here's my code based on alert documentation:
Ashraf Bashir
  • 9,686
  • 15
  • 57
  • 82
13
votes
4 answers

Is there a way to dismiss an no button UIalertView after some time?

UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"tittle" message:@"" delegate:self cancelButtonTitle:@"" otherButtonTitles:nil]; [alertView show]; [alertView release]; i…
ben
  • 1,020
  • 1
  • 15
  • 27
13
votes
8 answers

How to disable keyboard appearing when hitting on a text field , iOS?

I have a text field , and i need when the user presses it to show a custom picker. The picker is shown fine , but the problem is that the keyboard appears on the bottom and i dont want that. This is an iPad project which i am trying to convert from…
user1498477
12
votes
3 answers

FloatingActionButton does not come down when dismissing Snackbar

I am trying to use a Snackbar. I have a FloatingActionButton wrapped in a CoordinatorLayout. When the Snackbar shows, the button is correctly moved up. When it dismisses automatically, the button moves down. But if I dismiss the Snackbar…
allo86
  • 946
  • 1
  • 9
  • 23
12
votes
1 answer

UIAlertView warning when dismissing

I'm creating an alert in the following manner: let alert = UIAlertView(title: "Network Unavailable", message: "Oh noes!", delegate: nil, cancelButtonTitle: "OK") alert.show() Works fine. …
Pinxaton
  • 437
  • 4
  • 13
11
votes
2 answers

Advanced RecyclerView library - code examples

https://github.com/h6ah4i/android-advancedrecyclerview This seems to be a great library in terms of what functionality it offers. However, it lacks good documentation. It has a "tutorial" on Swipeable items, but like some other people I couldn't…
iBobb
  • 1,140
  • 1
  • 14
  • 35
11
votes
7 answers

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 withBarButtonItem:(UIBarButtonItem *)barButtonItem…
10
votes
3 answers

How to keep the snackbar open after action is called

I use a snackbar to notify the users of my app that they aren't connected to the internet. I added a "retry" action to the snackbar which re-checks the connection. I want the snackbar to stay displayed until I dismiss it myself (when an internet…
DeryckeS
  • 101
  • 1
  • 5
9
votes
2 answers

dismissModalViewControllerAnimated: (and dismissViewControllerAnimated) crashing in iOS 5

I can't find any logical explanation, but the fact remains that, in iOS 5 (xCode 4.2), if I presentModalView:* animated:YES, I can call dismissModalViewAnimated:* fine, but if I call presentModalView:* animated:NO, then calling the dismiss method…
jbcaveman
  • 911
  • 1
  • 10
  • 19
1
2
3
42 43