Questions tagged [uitableviewrowaction]

171 questions
0
votes
2 answers

Reading data from 2 textfields for each TableViewCell

As the title said; I want to read the data from multiple UITextFields for each cell and store them in an array. How would I do so? I have created a subclass CustomCell that has 2 UITextFields in it. P/S: the identifier for the cell is also…
Alan Bui
  • 1
  • 3
0
votes
1 answer

self.editing vs. self.tableView.editing and setEditing confusion

After presenting a modal view on my UITableView controller when editing is on, I found that the values of self.editing and self.tableView.editing are different when the controller is dismissed (self.editing was still on but self.tableView.editing…
Jeff
  • 2,659
  • 1
  • 22
  • 41
0
votes
2 answers

Reload header in section without reloading section rows in swift

I'm trying to reload UITableView section Header instead of reloading the whole section's rows because I have a UITextfield in the row and when I call tableview reloadSections it's clear the textfield value.
0
votes
1 answer

UITableView multiple actions

In the editing mode of UITableView, I need three things, the first two are easy to get using UITableView delegate methods: Delete (- in red) button on the left of the row, Reorder (three bars) row button on the right of the row, A custom defined…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
0
votes
3 answers

hide table view cell and remove table view space

I'm trying to hide table view and remove space. But the table view space not removed. When first time user coming this page there is no data inside the table view so I write ishidden=true.table hidden but space not remove.user add data manually and…
Faster
  • 41
  • 2
  • 11
0
votes
0 answers

add subview to UITableViewcell for making custom tableviewrowactions

am trying to imitate the iOS mail application row action and its animation .I want to give support for devices below iOS 10.I tried with pan gesture and setted the frame of the cell and now I want to add subview to the cell right side and animate…
0
votes
1 answer

UiSwipeActionsConfiguration - Cell reloads itself on first start

The Cell reloads its actions on first start, but trailingSwipeActionsConfigurationForRowAtIndexPath is only called once, any ideas? The code: - (UISwipeActionsConfiguration *)tableView:(UITableView *)tableView…
0
votes
1 answer

UITableView swipe-to-close in iOS 11

I have some trouble with UITableView swipe-to-close gesture to close actions in a cell. When I open cell actions it works fine, but when I'm trying to close it, it will close only after several trying. I've tested it in a clean project and noticed…
ftp27
  • 885
  • 1
  • 12
  • 31
0
votes
1 answer

UITableView Cell not showing Delete Menu

UITableViewCell is not showing the "Delete" option in this popup menu. It goes to the delete condition in the code below, but it is not showing up in the menu. func tableView(_ tableView: UITableView, canPerformAction action: Selector, forRowAt…
Alizain Prasla
  • 744
  • 2
  • 15
  • 37
0
votes
0 answers

TableviewCell button does not work when subclassed

I have a class of UITableViewCell called PodcastTableViewCell that has a button (connected via nib/storyboard) called playButton. This play button is also connected to an IBAction (in this super class) that prints to console and changes its button…
blue
  • 7,175
  • 16
  • 81
  • 179
0
votes
4 answers

how to perform specific action at certain table view row in swift?

I have a table view cell. I make an app for a tenant in the apartment to report the defect of the room facility. if the defect has been repaired (status: Complete), data from server will give defect.status == 2 (if defect.status == 1, still on…
Alexa289
  • 8,089
  • 10
  • 74
  • 178
0
votes
2 answers

Swift didSelectRowAt on UITableView and UICollectionView not works

I make tableView and collectionView in my ViewController and was set the Delegate and DataSource to my ViewController with extension or include the class. The cell already show correctly on both of them, I haven't any UITapGestureRecognizer in my…
0
votes
0 answers

Add Trailing Swipe Actions Configuration with white background color and dark gray icon

I am trying to add Trailing Swipe Actions for UITableView using UIContextualAction but the icon is not visible because the icon becomes white and the background is also white and when I change the background color it is visible. Please help me set…
Khushal Dugar
  • 230
  • 4
  • 12
0
votes
0 answers

UITableView Delete Row Animation misbehaving

I have a table view hooked up to a fetchedResultsController. When the table goes into editing mode I can get the delete to happen but the animation is strange. The red delete button instead of fading up with the rest of the row stays at full height…
Mark J
  • 3
  • 4
0
votes
1 answer

Using buttons/images in tableView:editActionsForRowAt:

I am trying to use tableView:editActionsForRowAt:, having buttons with images instead of the usual texts. But there are some challenges. Can some one help me? First here is what I have already working, -- with some precious help from SOF -- and…
Michel
  • 10,303
  • 17
  • 82
  • 179