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

How to prevent keyboard from dismissing when device rotates?

I have an iPhone app that has a "contact picker" using a table view. If my "recipient" field is active and the keyboard is shown, then the device is rotated, the keyboard dismisses itself automatically. How can I disable this functionality?
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146
0
votes
0 answers

Xamarin keyboard dismissing on simulator, but not on device

I'm able to run my app on the simulator and when I click out of the text field, the keyboard is dismissed. If I run the application on my device and touch outside of the text field when the keyboard is up, the keyboard is not dismissed. I have…
gsg822
  • 11
  • 2
0
votes
1 answer

Dismiss activity shown with FLAG_SHOW_WHEN_LOCKED

I'm showing an activity in lockscreen from a background service while the device is locked when the user is within a certain area (GPS obtained). The activity has this code: protected void onCreate(Bundle savedInstanceState) { ... …
Federico Alvarez
  • 1,459
  • 1
  • 19
  • 30
0
votes
2 answers

How to use dismissDropDown() in simpleadapter listview in android?

I am building an android application where I am using AutoComplete text to show the search of google place name. Now the problem is I want to dismiss the list when I selected any item from the listview. Here is my code - !. oncreateview…
sof question
  • 93
  • 2
  • 13
0
votes
2 answers

ios - How can I dismiss(close) the load UIViewController on the window

I have a question, I want to build popup view like the UIAlertView, I create two UIViewController in the storyboard(note: there are not segue),and Root UIViewController will load the UIViewController view popup. I create two UIViewController to edit…
dickfala
  • 3,246
  • 3
  • 31
  • 52
0
votes
1 answer

Dismiss a dialog based on editText value

I have an EditText inside an AlertDialog. I would like the dialog to be dismissed whenever the word "stop" is detected in the EditText. I tried calling dismiss()on the dialog, but it doesn't work : AlertDialog.Builder builder = new…
3kt
  • 2,543
  • 1
  • 17
  • 29
0
votes
4 answers

dismissViewControllerAnimated in swift throws an exception

I am new to swift programming. I am trying to present VC1.Swift on VC2.Swift, and dismiss VC2.swift to VC1.swift. At the time presenting it working but I am facing an exception at the time of dismissViewController. This is my code VC1.Swift import…
S P Balu Kommuri
  • 890
  • 10
  • 28
0
votes
0 answers

iOS 8 - How to properly dealloc view controller programmatically pushed on navigation controller?

I am presenting a view controller programmatically onto a navigation controller, and I discovered that after popping (if pushed) or dismissing (if modal) the presented view controller, it doesn't deallocate the view controller and is still retained…
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146
0
votes
2 answers

How to, on clicking back button, dismiss only the active dialog, not the dialog behind it?

Hi I've been working on the creating a dialog by clicking a button on an already opened dialog. First Dialog's Name = dialog_main Second Dialog's Name = dialog_edit First, I open dialog_main. There's a button on it which on pressed opens…
vin
  • 519
  • 2
  • 6
  • 18
0
votes
2 answers

DismissViewController inside a NSObject Class

I create a NSOBject class to work with MultipeerConnectivity, and for this I'm using this code below: DeviceConnect.m -(id)initConnectionWithDisplayName:(NSString*)value{ myPeerID = [[MCPeerID alloc] initWithDisplayName:value]; mySession =…
LettersBa
  • 747
  • 1
  • 8
  • 27
0
votes
1 answer

Dismiss performed UIViewController within controller that performed segue

I have UINavigationController with root UICalendarViewController. At some time while app running, inside UICalendarViewController I perform segue with UICalendarEventViewController. I keep reference to the 'UICalendarViewController' using var…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
0
votes
0 answers

dialogs reshow when the app is resumed

I have an app in which I can open many dialogs. This is one of them, they have the same code in the opening and in the onDismiss. This is the code for the onDismiss(), it's called when I do getDialog.dismiss(): @Override public void…
0
votes
1 answer

Multiple UIPopoverController issue, tricky bug when press immediately

The issue is normally when user have open a popover view, when he press outside the view, the popover view will dismiss. So it would not have multiple popover view display at the same time. Now the tricky problem is, if the user press on 2 buttons…
user1151874
  • 269
  • 3
  • 5
  • 15
0
votes
1 answer

-(void)gameCenterViewControllerDidFinish:(GKGameCenterViewController *)gameCenterViewController not been called

As in the title, I do not manage to have that callback called in order to dismiss the game center view controller neither on my iOS 7 iPhone nor iOS 8 iPad. This is the code I use: GKGameCenterViewController *controller=nil; -…
Fabrizio Bartolomucci
  • 4,948
  • 8
  • 43
  • 75
0
votes
0 answers

Animation for interactive keyboard in iOS 8

I have a view controller loaded from xib with a table view and a text field as titleView in the navigation bar. Simple. @interface ViewController () @property (nonatomic, weak) IBOutlet UITableView…
theMoonlitKnight
  • 431
  • 8
  • 17