-
Notifications
You must be signed in to change notification settings - Fork 427
Scroll to top getting affected. #111
Comments
@notDanish Before trying to dig into this, can you try this "hail Mary" attempt: [self.tableView setContentOffset:CGPointMake(1,1) animated:YES]; |
@Mazyod Tried, it still has the same issue. |
@notDanish Can you please tell me more about your shyNavBar configuration? Sticky, extension height, ... etc? |
@Mazyod Nothing fancy at all. Just that one line of code Haven't changed any other setting. |
@notDanish Thanks, I'll try to look into it, nothing immediately comes to mind.. (Please note |
I have the same problem. In some views I use extensionView, and some don't. None of them are scrolling to top correctly. The problem can be seen in your own swift sample demo code as well. |
Thanks @oyalhi, I figured it would be easily reproducible |
@Mazyod Also I noticed the scroll to top on tapping status bar feature which I believe is native to iOS 9 is not working anymore since I started using TLYShyNavBar. Is this a known issue? |
@notDanish no, I believe it was fixed in the past, but it may have regressed |
@Mazyod Can you direct me to the fix or the issue please? |
@notDanish sure, this is the one I had in mind #82 |
@Mazyod I checked the commit you made for that issue. It is not really affecting in this issue. On tapping the status bar, the scrollView (tableView here) doesn't scroll to top and hence the method Do you know if the touch event on status bar is being overridden by TLYShyNavBar or something weird like that? |
Hi @Mazyod |
@notDanish Yeah, sorry about that. There is no specific way the library overrides the status bar touch behavior. However, the status bar is coupled with the scroll view on this, since a touch on the status bar leads to an event on the scroll view. The library heavily manages the scroll view, so maybe something missing on that front. I am currently in "management" mode, will be happy to answer questions and review PRs, but can't really dig into the code. Will try to allocate more time soon. |
While I wouldn't call it particularly critical, I'm seeing this issue as well - using |
very interesting demo @worthbak, thanks for taking the time. I think there is some resistance the library might be applying, and maybe we can take care of it using the |
I'm having this issue also, except I'm not actually calling setContentOffset...I only have two lines of code:
Without even touching the scrollview, the application starts and isn't scrolled all the way up just as shown in @worthbak's video. EDIT: I suppose the issue I'm having is #101, which might be related to this one after all. |
i' m having an issue in iphone 4s. when i have less number of cells in uitableview then navigation bar is behaving unexpectedly while scrolling. scenario: |
@notDanish tapping the status bar seems to work fine for me when using the shyNavBarManager. I did however see this issue before for a different reason that may apply to your situation. Basically if any other views exist on that tableview the can "scroll to top" it will negate the scrolling to top capability. You'd need to setScrollsToTop to NO. So if a cell has a UITextView, UIScrollView etc. it will break scroll to top on the table view. Hope that helps. |
For anyone still having this issue, use |
I'm using this line of code :
[self.tableView setContentOffset:CGPointMake(0,0) animated:YES];
for my tableView that is present in a viewController embedded in shyNavBar.
The code was working perfectly till I changed the nav bar to shyNavBar. Now it doesn't scroll completely to top. The top of the first cell seems to get cut off a little until i manually scroll it down.
Is the shyNavBar somehow interfering with the scroll of the tableView?
The text was updated successfully, but these errors were encountered: