-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Hi Azure,
Great little app you created. I am using the code in my project but I was wondering if there is any way to reload table view / collection view to the top when I change tabs? I have 4 separate view controllers that corespondent to 4 different tabs. 2 are with table view and 2 have collection view. Everything works great. The only issue I have is when I scroll half way down in let say view controller 1 and move to view controller 2 when I come back to view controller 1 the table view stays on the same spot. I would like to make it go all the way to the top. I have try to use this function in each view controller:
override func viewWillAppear(_ animated: Bool) {
collectionView.setContentOffset(CGPoint.zero, animated: true)
}
It works for one tap but not for the others. I was wondering if there is any properties I can change in ACTabScrollView.swift file to make it work.
Thanks again in advance.
barHopperSF