coolbeet/CBStoreHouseRefreshControl

iOS 8 Offsets not resetting

Natelegreat1 opened this issue · 3 comments

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!!!

NOTE: This only occurs if you do not use a UITableViewController! -- I had a UIViewController with a UITableView in it... oh well.

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)
}