Questions tagged [uitableviewrowaction]
171 questions
2
votes
0 answers
Make row actions appear from the left when table enters edit mode without swipe in iOS 9
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…

Benoît L.
- 51
- 6
2
votes
0 answers
UITableViewRowAction works in simulator but not on device?
I have a table view with UITableViewRowAction on the cells so I can swipe a cell to reveal an action. It works perfectly on the simulator but not on device. Any ideas why?
var deleteButton = UITableViewRowAction(style: .Default, title: "delete",…

jenna Dao
- 21
- 1
2
votes
1 answer
Performing a segue control with UITableViewRowAction
If have the app working when a custom UITableViewCell is tapped in the mainVC, i can edit the CoreData in the inputTableVC.
Now i'am trying todo the same thing but then when the UITableViewRowAction "Edit" is tapped. The "Delete" function is already…

DavyG
- 21
- 2
2
votes
2 answers
Swift MGSwipeTableCell Swipe to Delete Cell
I am using xCode 7 beta and Swift to implement a tableview with MGSwipeTableCells. I am doing this because I need to have a swipe button on both the left and right of each cell. Both of these buttons needs to remove the cell from the tableview.
I…

user2585945
- 139
- 2
- 14
2
votes
1 answer
IOS UITableViewRowAction: swipe on cell works randomly
I have implemented editActionsForRowAtIndexPath which works fine when I manage to swipe the cell, but the swiping gesture is not always recognized, I have to swipe many times until quite randomly it works. Any idea why that would be?
Here is my…

Kalianey
- 2,738
- 6
- 25
- 43
2
votes
1 answer
Reduce font size for UITableViewRowAction
When looking at the Apple "Mail" app, the fonts of the row actions is around 20% smaller than the default ones. How can I get the same font size in swift?
Here is the view hierarchy:

sigma
- 117
- 7
2
votes
1 answer
What is the best way to save data online from UITableView?
My application
UITableView has 200 rows
In edit mode each cell has two actions for eg: passAction and failAction
After editing i want to update the database with either 0 or 1 based on its selection
I am retrieving data from server as json and…

Boopathy
- 415
- 3
- 12
2
votes
1 answer
UITableViewRowAction completion after animation
In my table, I have an UITableViewRowAction for editActionsForRowAtIndexPath. When I press it, it will delete all the data in my array, resulting in triggering the didSet on the array ending with the view changing. The code looks as follows:
var…

Henny Lee
- 2,970
- 3
- 20
- 37
2
votes
2 answers
uitableview insertRowAtIndexPath doubles rows
I have a tableView with 2 sections. I can fit 3 rows currently first 2 from first section and 1 row of second section. Whenever I receive a text from server I want a new row to be inserted at first place in second section. Like this:
--------- …

meteors
- 1,747
- 3
- 20
- 40
1
vote
2 answers
UITableViewCell missing deletion control after successive left-swipes
I use a tableview with editable custom style cells. There's an Edit button in the navigation bar which toggles editing mode. I need the editing mode to delete and reorder rows.
When I left-swipe a cell, the Delete action button shows on the right…

geohei
- 696
- 4
- 15
1
vote
0 answers
UITableview inside cell, second UItableview only 1 row, should be more than 1 row
So I'm trying making a multi-level UITableView by using UITableView inside UITableViewCell. Let me explain first:
Red color is Main UITableView
Blue color is Section, so I use as SectionHeader, and add UIButton into it, so can be expanded,…

Axel
- 73
- 1
- 11
1
vote
1 answer
How to add a slight delay before triggering didSelectRowAt action and deselecting the tabelview cell
Edit:
I didn't realize that it is the Animates (in segue in storyboard) and animated in pushViewController() which does the job.
How to smooth transition to next view when we tap on a row in table view. I want to achieve similar smooth transitioning…

Raymond
- 1,108
- 13
- 32
1
vote
1 answer
UITableView: swiping RowAction cancels the selected rows
I can see this behavior in both deprecated UITableViewRowAction class and UISwipeActionsConfiguration class:
If you have allowsMultipleSelection property set to true and, let's say, you have 3 rows selected:
When you start swiping any row in the…

rommex
- 763
- 1
- 8
- 21
1
vote
3 answers
How pass the value of a selected cell to another ViewController?
Essentially, I have the following UITableViewController that contains custom tableView cells with labels in them. When the cell is selected I would like the value of the cell to be passed to the next view controller where I am using it in an HTTP…
user11349745
1
vote
1 answer
swift uitableview reorder cells except the last cell
I received great advice from Stack Overflow a few days ago. It was to prevent the last cell from moving within the UITableView. It uses the following code.
func tableView (_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool {
…

randomizedLife
- 37
- 7