Questions tagged [uitableviewrowaction]

171 questions
0
votes
3 answers

How to resize a UITableViewRowAction to fit custom sized tableViewCell? - Swift 3

In my app I customized my TableViewCell to display like a card. I also implemented custom UITableViewRowActions for those cells. However the actions look weird because I added a layer to make the cell look like a floating card. Here's what it looks…
0
votes
2 answers

Segue from row action?

I have row actions and want the user to be able to click them, then be segued to the new VC along with the info for the object in the cell indexpath. This is my current code: func tableView(_ tableView: UITableView, editActionsForRowAt…
jwarris91
  • 902
  • 9
  • 24
0
votes
1 answer

How to set custom UITableViewRowAction depending on IndexPath.row?

I have a tableView(UITableView) customCell: UITableViewCell! itemsArray: [Item] I tried to set custom action for cell in UITableView depending on IndexPath.row. func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) …
0
votes
1 answer

UITableViewRowAction Cell with Corner Radius Changes Background Color

When a UITableViewRowAction swipe happens the cell background associated with that action changes it's background color to white, instead of black like it typically is. In other words, the color you can see behind the corner radius of the cell…
Ben
  • 3,346
  • 6
  • 32
  • 51
0
votes
2 answers

I want to open a new ViewController through UITableViewRowButtonAction

I have a UITableViewRowAction so when I slide there are 3 options from which I can choose. If I click on the Call button I want a new ViewController to pop over the whole screen. And if I click on a button inside the new ViewController I want it to…
0
votes
1 answer

UITableViewRowAction accessibilityValue

I'm trying to set an accessibility label / value for the UITableViewRowAction's button , in order to use it with appium automation , but from some reason , the accessibility hasn't been recognised cancel = UITableViewRowAction(style: .Destructive,…
Igal
  • 4,603
  • 14
  • 41
  • 66
0
votes
2 answers

Is there any way to change "DELETE" button from UITableViewCell?

I want to change DELETE button in UITableViewCell. Actually, I need to : Change position of button font text color of that button. Here I can only change button text in following delegate method : - (NSArray
VRAwesome
  • 4,721
  • 5
  • 27
  • 52
0
votes
0 answers

Pointing a popover at a UITableViewRowAction button

I'm trying to launch a popover from one of several UITableViewRowActions in a custom UITableviewCell. It appears that there are no off the shelf delegate methods available to do this in a straightforward way, but my searches turned up the following…
rattletrap99
  • 1,469
  • 2
  • 17
  • 36
0
votes
1 answer

Disappearing editActionsForRowAtIndexPath actions

I want to implement editActionsForRowAtIndexPath to display several options when I left-swipe a cell in my UITableview. So I used this code: - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { //Obviously,…
rattletrap99
  • 1,469
  • 2
  • 17
  • 36
0
votes
1 answer

UITableViewRowAction and UIAlertController

I have created UITableView with UITableViewRowAction: edit and delete. When pressing the delete, confirmation should appear as UIAlertController. If user press delete, cell should be deleted, and if user press cancel, cell should be deleted and…
0
votes
1 answer

Change color of UITableViewRowAction title text

I want change the color of UITableViewRowAction title. I want the “Download” to be written in red. This is the code for the button - func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) ->…
utkbansal
  • 2,787
  • 2
  • 26
  • 47
0
votes
1 answer

How to use inputview through UITableViewRowAction swift

I tried implementing this guide and impelemented it inside: let doneItem = UITableViewRowAction(style: .Normal, title: " Done ") { (action, indexPath) -> Void in } but assigning the 'inputView' is where I'm stuck at. I tried assigning it to the…
tew
  • 261
  • 4
  • 13
0
votes
2 answers

Manually trigger UITableViewRowAction handler

In swift, I need to test the deletion of a table view cell. Each cell has two row actions associated with it, with one of them being to delete that cell. How do I manually call the handler on this row action? This is the function that does the…
smac89
  • 39,374
  • 15
  • 132
  • 179
0
votes
0 answers

Deleted row in tableView hide a second tableView in the same controller

I've an UITableViewController within an UITableView(named: AutocompleteTableView) that appears only when i'm editing a textfield in the UITableViewController. I draw UITableView(AutoCompleteTableView) looking for the coordinates for the second…
0
votes
1 answer

Changing the UITableViewCell swipe action title

I have a row action button titled "Activate". When I press it, I want the title to change to "Deactivate". I was unable to change the title in the handler function. Also, "Activate" and "Deactivate" should have different functions. func…