Questions tagged [uitableviewrowaction]

171 questions
2
votes
1 answer

UITableViewCell not clickable when Blinking animation is implemented on it

No action is performed on UITableViewCell when blinking animation is implemented, it starts blinking that is fine but not clickable or swipable. I have tried some solutions but unable to fix it. Code is below. func tableView(_ tableView:…
2
votes
0 answers

UITableViewCell background color animation while swipe cell

I have a problem with implementing custom animation while swiping table view cell. The goal is to change cell background color while swipe cell with animation. Ideally, it's perfect if background color changes depending on the offset on the…
2
votes
2 answers

How to add swipe actions for table view cell in swift 5

I want to add Edit action to display when the user swipes a table row. I used to be able to use the editActionsForRowAt method, but it is now deprecated. And in the commit editingStyle method, there is no action I need. How can I add actions for my…
2
votes
2 answers

UITableView trailingSwipeActionsConfigurationForRowAt image and title

in iOS 11 we have a feature in UITableView trailingSwipeActionsConfigurationForRowAt to get the swipe events. But when I try to reduce the height of the row the text disappears and only image remains. Is there any way I can keep both? My cell…
Ekra
  • 3,241
  • 10
  • 41
  • 61
2
votes
1 answer

Slide to delete with similar design to iOS 10+ Notifications slide to delete in UITableViewCell

How can I make a tableviewcell's slide to delete look like the slide to delete for iOS notifications (fade in and don't touch edge of the screen). I will only have the delete button so I don't need multiple buttons. I would like it to delete upon a…
2
votes
1 answer

iOS: Trash Can Delete Button for UITableViewCell in Swift

Is there a way to add this icon to a UITableViewRowAction when a UITableView's UITableViewCell is swiped right, without setting the patternImage of the UITableViewRowAction's background? i.e. add access this icon: , into the following code: func…
ajrlewis
  • 2,968
  • 3
  • 33
  • 67
2
votes
3 answers

Custom UITableViewRowAction button

I want to set top and bottom constraint for uitableviewrowaction button Here's my code - (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewRowAction *deleteAction =…
user7372676
2
votes
1 answer

Image comes out of UIImageView when I swipe for row action in iOS

I have UIImageView in TableViewCell and that image view is positioned to the superview of that cell. I had written a function for editActionForRow to swipe and perform action but when I swipe the cell the image goes out of the UIImageView as shown…
shahin ali agharia
  • 1,629
  • 4
  • 21
  • 36
2
votes
2 answers

UITableViewRowAction not working

I have an UITableView that I manage in a controller with UITableViewDelegate and UITableViewDataSource. In this table I have a custom cell, the problem is that the function editActionsForRowAtIndexPath gets called only sometimes (maybe when I swype…
Zac
  • 423
  • 1
  • 6
  • 18
2
votes
0 answers

Changing colour on buttons in tableview cell edit actions

Hello! Having a go at swipe-to-delete functions and the likes in tableView cells today... When toggling a button I would like it to change colours from green to red and back again. - Any suggestions on how to achieve this? For the toggle button I…
JTing
  • 651
  • 7
  • 17
2
votes
2 answers

UITableViewRowAction - background colour of one affects the other

I have 3 UITableViewRowAction's in my source code, like below: - (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { if(messagePremission) { …
Nitish
  • 13,845
  • 28
  • 135
  • 263
2
votes
0 answers

Separator between UITableViewRowActions

I would like to have a separator between my two UITableViewRowActions. Here is an example of what I would like for my app to look like (this is from Fitbit's app): Here is what mine looks like: Here is my code for the actions: override func…
Pranav Wadhwa
  • 7,666
  • 6
  • 39
  • 61
2
votes
2 answers

UITableViewRowAction with image, swift

In my app I would like to use UITableViewRowAction with image instead of title text. I set background image using: let edit = UITableViewRowAction(style: .Normal, title: "Edit") { action, index in self.indexPath = indexPath …
Vah.Sah
  • 522
  • 1
  • 6
  • 21
2
votes
0 answers

Properly using backgroundEffect on UITableViewRowAction

I am trying to get my UITableViewRowAction options (table view slide options) to change their background color when I press down on them. I know this is possible because the native Mail app & (3rd party) Facebook Messenger uses it as well. Here is…
Eli Whittle
  • 1,084
  • 1
  • 15
  • 19
2
votes
2 answers

How to update button in UITableViewRowAction?

I use objective-c programming iPhone App. version is after iOS 8.1. there are some UITableViewRowAction in my UITableViewCell, i post request after tapping one of UITableViewRowAction, if successful, i want update the button (UITableViewRowAction)…
1 2
3
11 12