roytang121 / iOS-TwitterProfile

Twitter-like Profile viewController with easy to use API
MIT License
182 stars 35 forks source link

No reusable table cells #2

Open temrov opened 7 years ago

temrov commented 7 years ago

What if 10000 cells in table? All of them are in memory. It is 2.42GB on iPhone6 simulator. Besides func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell calls for 10000 times at the beginning. It takes for some time.

Alex601t commented 6 years ago

@temrov In this code owner calculate scroll view frame by contents size, and deq do not work self.scrollViews.forEach({ (scrollView) in scrollView.frame = self.computeTableViewFrame(tableView: scrollView) })

BhavinBhadani commented 1 year ago

@Alex601t @temrov Any better solution for this?