Reputation: 532
I am using a uitableView
in my application and I want to prevent reloading it in different cases:
1. when I present another modal view on it.
2. row selection happens.
I am not calling [tableview reloadData]
in viewWillAppear
or viewDidAppear
. Is there anyway to prevent this reloading?
Upvotes: 4
Views: 3148
Reputation: 532
Thanks for your replies. There is no reload calling that causes this issue. I was using auto layout and the constraints set on tableview causes it to reload and change position when other view appears. Solution: When you do a selection os presentation use this command to prevent it from setting position for constraints:
tableView.translatesAutoresizingMaskIntoConstraints = YES;
Upvotes: 0
Reputation: 528
Here is a way you can "track" where function calls come from:
I hope this helps you and hope it was something called by you, the programmer because as you can see in my example, there was only one step that was done by me. How i can tell was the blue person icon next to 6 -[ViewController viewDidLoad]
Upvotes: 3
Reputation: 11
Upvotes: 1