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
0
votes
1 answer

android - dismiss spinner when user touches somewhere else

I have an app where the user presses a button and a custom spinner is popped so that the user can choose between nine colors. I want the spinner to be dismissed, when the user touches the background (every place on the sreen except from the…
george
  • 1,386
  • 5
  • 22
  • 38
0
votes
1 answer

UIPopoverController not dismissed automatically when pressing outside

I needed three buttons in the top left spot of an iPad navbar. From another post here, I received the suggestion to put a toolbar there, since the navbar only allows one left bar item. Now there are three buttons (Create, Reorder, Delete), each…
0
votes
1 answer

Objective-C - Detect dismiss of a view after page curl

I have a Main View which call a settings panel in another view with the page curl transition. All seems fine, but when I close the settings view it doesn't trigger the "viewWillAppear" method of my Main View causing me a lot of troubles because it…
Alberto Schiariti
  • 1,546
  • 2
  • 15
  • 31
0
votes
1 answer

PopOver on QLPreviewController is not getting Dismiss , even after going back

I have set QLPreviewController as A Parent to My UIViewController. I am able to Show Any file on my View, Using QLPreviewController. Now, when I open file to View, there is an ActionButton Sets internally,which Provides option for "Open In" ,…
Shreyas G
  • 11
  • 3
0
votes
1 answer

Dismissing Keyboard and dealloc()

Got one here which is causing 'concern'... I have a modal view controller which uses the keyboard. I am using a system to dismiss the keyboard from code on stackoverflow which appear to be the 'new way' of recognising taps outside the keyboard to…
Fittoburst
  • 2,215
  • 2
  • 21
  • 33
0
votes
3 answers

Can not dismiss an action sheet here

A UILongPressGestureRecognizer is added to my imageView with action handleLongPressOnPhotos. The most related codes is as following: - (IBAction)handleLongPressOnPhotos:(UILongPressGestureRecognizer *)sender { self.imageWillBeSaved = (UIImageView…
lu yuan
  • 7,207
  • 9
  • 44
  • 78
0
votes
1 answer

Dismiss an Alertdialog in Android

I am trying to dismiss an AlertDialog in android: public AlertDialog dialog; AlertDialog.Builder builder; builder = new AlertDialog.Builder(this); builder.setMessage("Message."); …
b.i
  • 1,087
  • 4
  • 22
  • 43
0
votes
2 answers

Dismissing a view makes losing it all values... viewWillAppear as a cure?

I have a basic modal view system. My app loads the UI base in which there are 2 buttons presenting 2 other views. In those views, a dismiss button. Everything works fine. BUT, in one of the 2 modal views, I have a bunch of UISlider & UISwitch. I…
gluon
  • 662
  • 1
  • 10
  • 18
-1
votes
3 answers

Dismissing 2 or more ViewControllers

Is it possible to dismiss 2 viewControllers efficiently? I currently have 3 (or more) viewControllers. View1 > presents View2 , View2 > presents View3, etc.. then when an action is triggered in View3 (or 4,5..), I need to return to the View1. How is…
-1
votes
1 answer

How to display progressDialog in Android?

i want to display progressDialog in my activity when im call webservices and call to webservices ends Dialog dismiss automatically can any know how to do this and i want some sample for it . Thankx in advance . here is my code but it not working…
Sachin Gurnani
  • 2,444
  • 7
  • 36
  • 45
-1
votes
2 answers

Smooth Dismissal with Hand Swipe in Swift

Hi I am using SwipeGesture for dismissing the view when the user swipes down on the view. I want to dismiss the view at swipe down with smooth. I write the following code for when the user swipes down; it works automatically, but I don't want to…
srikanth kumar
  • 77
  • 1
  • 10
-1
votes
1 answer

How to dismiss a Dialog?

I have problem with dismissing a Dialog. I have two cases: 1. Insert a presence without info (so the soft Keyboard doesn't appear, when I click on the editText). 2. Insert a presence with info. private Dialog newPresenceUser; newPresenceUser= new…
-1
votes
2 answers

Dismiss alert after task on MainViewController swift

I need to download some content from API when users login for the first time at my app and show them I'm doing that. I do this at my MainViewController: override func viewDidAppear(_ animated: Bool) { let alert = UIAlertController(title:…
asr
  • 139
  • 3
  • 11
-1
votes
1 answer

passing data via delegate protocols before dismiss between view controllers

I have a swift 4 question, hopefully someone knows the answer, because google does not... I have 2 ViewControllers, first controller loads up the second one like this: // view controller 1: class ViewController:…
sublimit
  • 79
  • 3
-1
votes
2 answers

Alert Dialog not able to dismiss in android

Hi I am using Alert dialog with listview it is working fine but when i click on list item i want to dismiss the dialog , but it is not working, Following is my snippet , can any one help me solve this. public void setdailog() { final…
Nilima
  • 75
  • 1
  • 10