DrummerB/BFNavigationBarDrawer
소개
Music 앱의 재생 목록 보기처럼 UINavigationBar 아래에 쉽게 표시할 수 있는 UIToolbar 하위 클래스입니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalBFNavigationBarDrawer
| With automatic scroll view adjustment | Without scroll view adjustment |
|---|---|
![]() |
![]() |
Summary
BFNavigationBarDrawer is a UIToolbar subclass that can easily be displayed below a UINavigationBar, similarly to the playlist view in the Music app. You can also assign a scroll view (or table view) to the drawer. The drawer will take care of moving the scroll view's content down and updating its contentInset property, when the drawer is displayed.
Instructions
Create a Podfile, if you don't have one already. Add the following line.
pod 'BFNavigationBarDrawer'
Run the following command.
pod install
Alternatively, you can just drop the BFNavigationBarDrawer.{h,m} files into your project.
Create a drawer instance and assign a scroll view that should be scrolled by the drawer:
drawer = [[BFNavigationBarDrawer alloc] init];
drawer.scrollView = self.tableView;
Add some UIBarButtonItems to it and when you want to display it, call:
[drawer showFromNavigationBar:self.navigationController.navigationBar animated:YES];
To hide it:
[drawer hideAnimated:YES];
Notes
I only tested with iOS 7. It doesn't make a lot of sense to use it with earlier iOS versions, as navigation bars used to be opaque and you could simply resize the scroll view to make room for an additional header bar.
License
New BSD License. For the full license text, see here.
관련 프로젝트 살펴보기
불러오는 중…

