I have a side swipe menu implemented for a UITableView using UITableViewRowAction. I would like to add a "Done" button to this menu and have it visible while the user is editing a cell. Once "Done" is pressed, the action would complete normally.
Can I programmatically present UITableViewRowAction for a specific table view row?
or
Can I have UITableViewRowAction stay visible after user taps one of its buttons?
Related
I would like to be able to present actions on the row of a TableView (as described in the topic "Swipe to Delete and the More button") from its left and when the table enters edit mode, and not based on a swipe gesture.
The question "In iOS 8, how to add Row Action Buttons to the left side of a UITableViewCell" discusses this topic and presents a relevant picture, however this action is initiated by a swipe, where I would like it to be initiated when entering edit mode by tapping an Edit button.
When binding the edit mode to an Edit button in the navigation bar (on the left) with
self.navigationItem.leftBarButtonItem = self.editButtonItem()
then tapping the Edit button will by default shift the row and present a rounded delete button on the left:
Is there a simple way to replace this rounded button with square buttons such as Delete and More (swiping the row should not trigger anyting) ?
Thank your very much.
I have a custom button like facebook app does. When I click on custom button while editing my textview, it shows left menu but doesn't hide keyboard.
I have tried everything but still my problem is there. How I can hide keyboard on clicking on custom button.
Just include this in the burger's button IBAction
[self.view endEditing:YES];
I have 2 buttons. Each button is bringing a subview on top of the main view.
I'm checking in each button tapped method if the other button view is active then first dismiss it and then bring up its own view but for that I need to tap button twice. Does popover passthrough-view apply here as well?
I'm using an UITableView with the following setup:
normal mode: detail disclosure button
edit mode: disclosure indicator
If the table is in edit mode and I select the row, the pushViewController(nextViewController,animated) is called.
But now my problem: During the animated change of the view controller, the disclosure button changes to a detail disclosure button.
I think you'll find that iOS cancels "editing mode" before it pushes the next view controller.
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];.