Reputation: 9466
I have a UITableView
that when the function cellForRowAt
is called some calculations are being made. This all works great until I found out that when I swipe up on the tableview
, the cellForRowAt
function is called each time. Is this a bug in iOS 11 (GM) or something that should be happening? If this is default behavior is it possible to deactivate the swipe up gesture?
Upvotes: 0
Views: 90
Reputation: 337
It's because you use
dequeueReusableCell
in cellForRowAt
.UITableView
redraw cells that not display on screen every time when you swipe up or down.
Upvotes: 1
Reputation: 482
Whenever we scroll down or up cellForRowAt
will be called due to intraction and change in behaviour of UITableView
and whwn changes happend then cell has to redesign its self.
Upvotes: 0