I have a menu button that opens a drop down menu modal. One is how I prevent VoiceOver from reading right off the menu and second when I double tap outside the menu to close focus goes to the parent page and not back to the menu button.
I await clarification on the first part. As for the second, you want to post a notification, with the element to be focused.
UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, viewToBeFocused);
Related
By setting UIButton().menu, a menu can be shown when tapped.
And a menu is shown when long pressed, too.
I want to execute some another action (for example, change text) when tapped, and show a menu when long pressed.
How to show a menu only when long pressed, like Safari's show tabs button on the right bottom of the screen?
In Safari, tabs are shown when show tabs button is tapped, and a menu is shown when show tabs button is long pressed.
btn.showsMenuAsPrimaryAction = false
(First - i'm sorry about my english:).
I want to create a tutorial bubble that will pop up in some situations while using my app.
I need this popup to disappear when clicking or scrolling on every view in my VC, and i need that these buttons to do what they need to do in this click event and not only dismiss the pop up so then we will need to click on the buttons again.
I have 2 ways to do it, but every one of them have some disadvantage.
the popup view will have a transparent view with frame of the whole VC. this background view will dismiss the pop up in its touchBegin event.
but like that i can't click ob my buttons that below this popup background view.
the second option is to create the pop up without the background transparent background, so all the buttons will be clickable.
but in this situation i don't know how to listen all the buttons click event or table scroll event so i can dismiss the popup.
I have set up an SWRevealController menu that slides out from the right side of my app. I have a button on the right hand side of my navigation bars that reveals the menu. I am trying to disable user interaction on the front view when the menu is open. I have tried following this but i am struggling. The class name that controls the menu is menuTableViewController.swift. Can someone explain how i do this in swift?
In my application I have one uiview.
I am adding another subview to this view which contains one textfield.
when user clicks that field then it display the keypad.
This subview also contains one add and delete button.
when user clicks on that button another view is opened which is also the subview of main view and that view contains selection list in the table.
The problem here is when user types something in textfield so keyboard is open.
if user does not dismiss that keyboard and clicks on add button to select from selection list then only half of the selection list is visible because keyboard is still open.
I want to send the keyboard back.
Here i do not want to dismiss the keyborad.while user clicks the add button.i only want to send it back to the selection view.when user is done with selection view keyboard should be open as it is.How can i solve this issue?
If you want the keyboard to go away, you need to dismiss it when they click on the button by using [yourTextField resignFirstResponder];.
If you want it to come back when they select an item, you will need to call [yourTextField becomeFirstResponder];.
I have a list of items showed on a page. Each item can be clicked and opened in a popup window to be edited. On this popup window, I have a save button.
When this 'save' button is clicked, I would like:
call an action controller to update the database
close the popup window
refresh the main list item (still opened in the background)
Can anyone help me to achieve this? I really don't know how to update the main window (list of items).
Thanks.