Questions tagged [uitableviewrowaction]

171 questions
1
vote
2 answers

Override setEdit in UITableViewController: where does the call come from?

When the user taps on Edit or Done in the top left corner of a UITableViewController, I need to change some things (in addition to what Apple does automatically). I override setEditing(), do my visual changes there. Works fine. The method…
Gerd Castan
  • 6,275
  • 3
  • 44
  • 89
1
vote
1 answer

Trigger segue from UITableViewRowAction

I've read many SO posts about this problem, but unfortunately none of the answers have solved my issue. I have a UIViewController with a TableView inside of it (I set it up this way for a specific UI format I wanted), and as of now if the user…
MachTurtle
  • 220
  • 3
  • 10
1
vote
1 answer

TrailingSwipeAction: How to deactivate auto delete on swipe through?

I update my tablerowactions to the swift 4 equivalent to be able to set icons instead of text as the buttons that show when the user swipes left on a table-element. My problem is that the first defined action (in my case the delete action)…
1
vote
1 answer

How to give action to tableview row and how to add Add disclosure indicator in it?

Here is description of my class. At first refer the above image. So here, I created a button.(see in scene 1 in Image) After clicking a button one table view will appear (see in scene 2 in Image). If I click any cell then that table view cell value…
1
vote
0 answers

UITableViewRowAction doesn't work after swipe the cell can't be swiped

Now I have an UITableview , and some CollectionviewCell in the same viewController, if user click the collectionviewCell, tableview will reload different datas, some have multiple sections, some not, and also some cells can be swipe , some may…
1
vote
0 answers

Fixing view's location with auto-layout

The code bellow works in iOS 10. I can swipe the cell to left and keep its 'trickView' fixed on the edge of the UITableView. But it does not work in iOS 11. (The swipe animation is done by UITableViewRowAction) If there is someone know how to make…
supc
  • 190
  • 1
  • 9
1
vote
1 answer

didSelectRowAt indexPath does not when tapped (but does trigger when cell is swiped in either direction)

This is a weird (but should be simple) one. I am simply trying to tap a custom UITableViewCell and trigger a segue to go to another ViewController. didSelectRowAt indexPath does not trigger when the cell is tapped, but it oddly enough does when the…
Rbar
  • 3,740
  • 9
  • 39
  • 69
1
vote
1 answer

Edit actions in a table view similar to ios notifications center

I need to develop a tableview with edit actions on rows that look similar to the ones on iOS Notification center. The resources I have used so far, say that I can only edit the background color and width of edit actions. What I want is the custom…
1
vote
2 answers

Deleting UITableViewCell causing crash

I know there's a number of posts on this subject and I've been through most of them but I still can't solve an issue I'm having when deleting a tableViewCell causing my app to crash with the follow error: Assertion failure in -[UITableViewRowData…
TommyBs
  • 9,354
  • 4
  • 34
  • 65
1
vote
0 answers

Editing actions (row actions) don't appear on swipe in Swift 3.0

here is my problem: I have an editButton and editActions for each cell So I wanted checkboxes instead of red minuses . I've found this block of code: override func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) ->…
Gleb Kalachev
  • 123
  • 1
  • 7
1
vote
5 answers

Select and Deselect UITableView Rows

I have TableView with multiple rows, I am selecting them and adding them to the Label text when i deselect any of the row I am unable to remove it from Label Text Here's My Code: func tableView(tableView: UITableView, cellForRowAtIndexPath…
1
vote
1 answer

Get UITableViewRowAction to bounce on tap

I want to add feedback for a table cell with a row action. When the user clicks the cell the row action will bounce open a bit. I've seen this somewhere before, it shows the user theres a menu. I don't see anything in the docs that would give me…
Justin
  • 717
  • 1
  • 9
  • 15
1
vote
1 answer

UITableViewRowAction background color overlap issue

For some rows in tableview last UITableViewRowAction's background color collapse with previous buttons. Also this issue happens only iPhone 6/6S.
1
vote
1 answer

Unable to switch to another UIViewController when “Edit” UITableViewRowAction is pressed

I want my swift app to open an UIViewController (called "SecondViewController") when the UITableViewRowAction "Edit" is pressed. However, my code below doesn't do anything; when I press the "Edit" action, absolutely nothing happens. func…
1
vote
1 answer

Segue from editActionsForRowAtIndexPath

I'm making a little banking type app, for instructional purposes. All transactions are stored as Core Data entities, fetched and sorted using Magical Record helper methods. The transactions are displayed in a UITableView, fed by a fetchedObjects…
rattletrap99
  • 1,469
  • 2
  • 17
  • 36