andreamazz / andreamazz/AMScrollingNavbar

Fully Hide Follower(s) and content inset issues

Đang mở
#335 35 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Swift
Star
6k
Fork
628
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
I am replacing TLYShyNavBarManager with your library and liking it very much! However, I'm not sure I understand how to to use it correctly.

I have a UIViewController that has a full screen tableView.
I create a custom toolbar programmatically and add it as a subview to self.view (I suspect herein lies my content inset issue. With TLY, I didn't have to add it to self.view)

Everything works GREAT except:

1) The toolbar I have set as a follower does not fully hide. I can actually live with this until a future update.
2) The toolbar covers up some of the underlying tableview. This I have to fix ASAP.

Relevant code:

```objc
//Creating of toolbar
_statusBar = [[StatusBar alloc] initWithFrame:CGRectMake(0.0, 0.0, self.view.frame.size.width, 130.0)];
_statusBar.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_statusBar.searchBar.delegate = self; //Implement search bar delegate features
[self.view addSubview:_statusBar];

//Attaching/Following
NavigationBarFollower *statusBarFollow = [[NavigationBarFollower alloc] initWithView:_statusBar direction:NavigationBarFollowerCollapseDirectionScrollUp];
[(ScrollingNavigationController *)self.navigationController followScrollView:_tableView delay:0 scrollSpeedFactor:1 collapseDirection:NavigationBarCollapseDirectionScrollDown followers:@[statusBarFollow]];
```
Here is a video demonstrating my issue!
https://imgur.com/a/hWmjgrf

In the video, my "toolbar" is the thing from the bottom of the nav bar all the way to the "games shown" stuff

Any help would be greatly appreciated! And thanks for the library!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.