Questions tagged [uitableviewrowaction]

171 questions
32
votes
9 answers

UITableViewRowAction image for title

I made a custom UITableViewRowAction. Now I'd like to add an image instead of the text. I know that it's possible but don't know how to do it. Does someone of you knows how to do this in Swift and would like to help me? Thanks for your answers!
user3592462
  • 343
  • 1
  • 4
  • 9
23
votes
11 answers

How to change UITableViewRowAction title color?

Am using UITableViewRowAction in "editActionsForRowAtIndexPath" method. I can change the backgroundcolor of UITableViewRowAction, but am not able to change the title color. But I would like to change the color of the UITableViewRowAction. Any inputs…
GJDK
  • 723
  • 2
  • 7
  • 19
12
votes
4 answers

How to add image to row action in Table View?

How to add custom image to delete button when swiping cell from right on UITableview as shown in the below image? func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? { let…
kumar
  • 481
  • 3
  • 7
  • 18
11
votes
9 answers

How to do custom font and color in UITableViewRowAction without Storyboard

I have classic TableView where you can delete item if you swipe and than clicking on the button. I know how to set custom background on the cell, but I can't find how I can set custom font and color for that. Thank you for help! func…
Vlastimil Fiser
  • 177
  • 1
  • 2
  • 9
9
votes
3 answers

UITableViewRowAction with icon and text

There are a couple of similar questions out there, but I think there should be up an up to date answer for iOS 10, using Swift3, that doesn't use private APIs, and doesn't rely on you restricting your icon to the unicode emoji. I have table rows…
Travis Griggs
  • 21,522
  • 19
  • 91
  • 167
9
votes
1 answer

Programmatically swipe UITableViewCell?

Is there any way to programmatically trigger the equivalent of swiping left on a UITableViewCell that has edit actions? This is different from simply [tableView setEditing:YES animated:YES] as that method sets the entire table into editing mode and…
Ken M. Haggerty
  • 24,902
  • 5
  • 28
  • 37
8
votes
6 answers

I implemented editActionsForRowAtIndexPath and commitEditingStyle but no edit actions appear on the tableViewCell when swiping the cell

I implemented editActionsForRowAtIndexPath and commitEditingStyle the swipe is working but no edit actions appear on the UITableViewCell my implementation for editActionsForRowAtIndexPath and commitEditingStyle as follow: func tableView(tableView:…
Abdelrahman
  • 997
  • 2
  • 10
  • 24
7
votes
7 answers

Disable tableview cell highlighted color in edit mode?

How can i remove the table view cell highlighted color in edit mode. I am using the table view property “allowsMultipleSelection” in edit mode. By default the cell is highlighted in a light blue color. Although we can change the highlighted color i…
subin272
  • 733
  • 6
  • 24
7
votes
1 answer

UITableViewRowAction with image instead of title

I'd like to make a cell swipe action like mail app. I set UIImage to backgroundColor of row action. action.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"remove"]]; But i get my image repeated side-by-side on the…
Daniel
  • 83
  • 1
  • 6
6
votes
2 answers

Why do all Section Heading rows slide with table cell when i implement UITableViewRowAction

I have the following swift code to implement a UITableViewRowAction, when I swipe a row the row slides out to the left as expected, however all the Section Header Rows also slide to the left with the table row at the same time. I have also included…
Mike U
  • 2,901
  • 10
  • 32
  • 44
5
votes
4 answers

UITableView Reload Rows unnaturally jerking the TableView in iOS 11.2

Strange issue arrived after updating new XCODE 9.2 with iOS 11.2, by calling let indexPath = IndexPath(item: 0, section: 1) self.tableViewHome.reloadRows(at: [indexPath], with: .none) It causes unnecessary jerking the whole TableView, Prior it was…
Abhishek Mitra
  • 3,335
  • 4
  • 25
  • 46
5
votes
2 answers

Swift 3: UITableViewRowActionStyle() "Missing Parameter" Error Msg

When I swipe a UITableView cell, the below code is called: func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? { //Problem code let delBut = UITableViewRowAction(style:…
Dave G
  • 12,042
  • 7
  • 57
  • 83
5
votes
0 answers

iOS can I programmatically present UITableViewRowAction, or have it stay visible?

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…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
4
votes
2 answers

Title is not visible for UIContextualAction (UITableView swipe to delete - iOS 11)

I am using UIContextualAction to implement swipe to delete functionality for UITableViewCell. I use + (instancetype)contextualActionWithStyle:(UIContextualActionStyle)style title:(nullable NSString *)title handler:(UIContextualActionHandler)handler…
Advaith
  • 1,087
  • 3
  • 12
  • 31
4
votes
1 answer

Table View Cell highlight when user swipe

I try to make row action for UITableViewCell and I have a problem with highlight while swipe. The user doesn't really select the cell, he simply swipe to left. My shouldHighlightRowAtIndexPath looks like this: - (BOOL)tableView:(UITableView…
gran33
  • 12,421
  • 9
  • 48
  • 76
1
2 3
11 12