iOS 8 Offsets not resetting
Natelegreat1 opened this issue · 3 comments
Natelegreat1 commented
After the animation is complete, the scrollView (in my case UITableView specifically) is remaining offset by about the height of the storeHouse image...
Anyone else having this issue?
Followed demo to the letter.
This is probably the coolest iOS accessory I've seen in ages and would be upset if I couldn't make use of it!!!
Natelegreat1 commented
NOTE: This only occurs if you do not use a UITableViewController! -- I had a UIViewController with a UITableView in it... oh well.
crewshin commented
Same thing happens for me with a UITableViewController.
ijpe commented
Add
yourScrollView.setContentOffset(CGPoint(x: 0, y: 0), animated: false)
after
self.storeHouseRefreshControl.finishingLoading()
Example:
func refreshTriggered()
{
//call your loading method here
//Finshed loading the data, reset the refresh control
self.storeHouseRefreshControl.finishingLoading()
yourScrollView.setContentOffset(CGPoint(x: 0, y: 0), animated: false)
}