-
Notifications
You must be signed in to change notification settings - Fork 427
UIRefreshControl disappears #99
Comments
Thanks, I don't have an idea why it flickers. |
It does not flicker, and I test it on real device as I said. It just disappears just before didRefreshed is called. |
+1, I also have this issue. The library is causing the |
@Ufosek my bad, I should've read the issue better. Ok, I get the issue, and will hopefully work on a fix soon! |
+1, I also have this issue. The library is causing the UIRefreshControl to disappear once the refresh has been initiated, and the ScrollView bounces back over the Refresh Control. |
We have the same problem. What I found out: the control gets moved up for 60pts, which is the exact height of the refresh control itself. |
Hey @Mazyod, do you have any idea when you will get to work on this issue? Together with @BenchR267 I took a look at it for one day, but we were struggling finding any hint what leads to this 60pts jump. So sadly we don't have further information for you. :/ |
Thanks guys, I am looking at spending some time fixing issues over the next couple weeks. |
+1 I have the same issue :( |
This issue is proving to be quite troublesome .. As soon as I find a way to avoid breaking the refresh control, the UITableView headers break .. They might need to be handled manually by the user of the component by disabling the shy behavior when the refresh control is active.. I'll post back with more on this. |
For those looking for a quick way to work around this issue, here is a hack: // Add this in TLYShyScrollViewController.m, instead of the original tly_setInsets call
if (intelligently || fabs(delta + 60.f) > FLT_EPSILON)
{
[self.scrollView tly_setInsets:insets preserveOffset:intelligently];
} Of course, this magical Caveats
Still looking for a better way... |
Can you be more specific about where to implement this hack? I'm working in Swift and using ShyNavBarManager. |
@DanielRakh it's written specifically above, in |
@Mazyod sorry I must be missing something. What is this |
@DanielRakh It would be the best to include the framework via Cocoapods. Just fork the original repository, make the changes @Mazyod was saying and link to your fork in the Podfile. |
@DanielRakh My bad, I didn't realized you were going the Framework approach. @BenchR267 has the right approach, thanks! |
@Mazyod it's working fine for us, thanks! We will switch to the original repository when the bug is fixed :) |
@BenchR267 @Mazyod got it. Thanks guys! |
@BenchR267 Thanks for reporting back 👍 |
Looking forward to seeing this fixed! Any progress? :) |
Got the same issue!! Any update? |
There is no official bug fix, just this work around. You can use our fork until the bug is fixed in the original version if you want: https://github.com/lovoo/TLYShyNavBar |
Cool !! Why don't you pull request? |
As you can see in the code changes, this is just a quick fix that might break in some cases. (A value is set to a magic number of 60.0). @Mazyod any news on a fix that is not just a hack? :) |
The fix I used is still hacky but moved a little earlier than the method suggested above. In TLYShyScrollViewController.m I changed
to
64 seemed to be the offset of the scrollview when pull to refresh was visible. |
For those following along I think I've found a fix and made a PR #122 , please give it a try, it'd be good to see if the fix works in other scenarios. |
can you please look into ISSUE 120. I am not able to find any fix for this. |
Setting |
I use TLYShyNav in my UITableView. I also added a UIRefreshControl to it.
let refreshControl = UIRefreshControl()
refreshControl.tintColor = UIColor.blackColor()
refreshControl.addTarget(self, action: "didRefreshed", forControlEvents: UIControlEvents.ValueChanged)
scrollView.addSubview(refreshControl)
And the problem is when I set
self.shyNavBarManager.scrollView = self.tableView
refresh control disappears when refreshing. When just dragging everything is ok but when beginRefreshing is called refresh is disappeared. Its similar to #28, but I test it on real device and I don't see any flickering.What may be the issue?
Here are logs from didRefreshed
with shyNavBarManager (why is it hidden?!)
Optional(<UIRefreshControl: 0x126623970; frame = (0 -66; 375 60); hidden = YES; autoresize = W; tag = 665; layer = <CALayer: 0x17422a800>>)
without
refresh = Optional(<UIRefreshControl: 0x14c6277b0; frame = (0 -74.5; 375 60); autoresize = W; tag = 665; layer = <CALayer: 0x174230620>>)
The text was updated successfully, but these errors were encountered: