Questions tagged [reloadrows]

8 questions
1
vote
0 answers

A bug cause by UITableView reloadRows(at:with:)

when i use the method to reload my cell , it cause a little bug self.tableView.reloadRows(at: [indexPath], with: .none) if i use such to close the animation ,it works ok UIView.performWithoutAnimation { self.tableView.reloadRows(at:…
廖源迪
  • 23
  • 4
1
vote
2 answers

Swift4 : How to use reloadData & deselectRow in UITableViewController?

I try to reloadData on UITableView at viewWillApper. But deselectRow Animation is not working well. How can I do reloadData & deselectRow animation? override func viewWillAppear(_ animated: Bool) { self.tableView.reloadData() if let…
Tarou
  • 57
  • 7
1
vote
0 answers

UITableView Floating Cell After Async Fetch

This is in the same vein as a previous question I here Basically, UITableView cells would occasionally overlap the data underneath them - I tracked that down to reloadRows acting wonky with estimatedHeight, and my solve was to cache the height when…
Nick Coelius
  • 4,668
  • 3
  • 24
  • 30
1
vote
1 answer

Problems with asynchronous data, UITableView, and reloadRowsAt

I'm trying to implement a tableView that has 4 different possible prototype cells. They all inherit from base UITableViewCell class and implement its protocol. For two of the cells there's asynchronous data fetching but one in particular has been…
Nick Coelius
  • 4,668
  • 3
  • 24
  • 30
0
votes
2 answers

UITableView reloadRows() called by action button inside custom UITableViewCell always lags one step behind

I have a UITableView and I made a custom cellview to add a button inside each cell, the button is supposed to change its color when clicked. Although the data is updated and printed correctly, the view always lags one step behind i.e. when I click…
0
votes
0 answers

Tableview laggy when inserting dynamic cells and scrolling to bottom

I'm making a chatbot app, in which I'm adding different kind of cells in a tableview (with dynamic height), and after adding, I'm scrolling to the bottom. When the content size of the tableview is smaller compared to the height of the screen,…
0
votes
0 answers

Tableview is bouncing when reloadRows(at: [indexPath], with: .fade) is called from did select row at index path

I am having this weird issue. when I scroll tableview and update some cell it bounce equivalent to the amount first cell scrolled. I am having one view controller with tableview in it and based on user select some rows i'm updating only that row…
Iraniya Naynesh
  • 1,125
  • 3
  • 14
  • 26
-2
votes
1 answer

UITableView reloadRows crashes sometime

I have 4 rows which shows and hide some data below the selected row. Its works fine Most of the time. But when I click second/third/fourth rows multiple times(like 13-14) times and then click on first row then sometime it crashes not always but it…