GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sumitmundra/IBScrollViewFloatingHeader: Floating header view category for UIScrollView and UITableView

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
IBScrollViewFloatingHeader
IBScrollViewFloatingHeader
 
 
images
images
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 

Repository files navigation

IBScrollViewFloatingHeader

This project is inspired by Facebook's Floating Header View on iOS.

The header view will float on the top on two cases:

  • ScrollView is scrolled all the way to the top;
  • User scrolled up faster than a normal scroll.

Facebook Example

This is supposed to work on iOS 5+.

Supported Views:

  • UIScrollView
  • UITableView
  • UICollectionView -- untested

Usage

Add UIScrollView+IBFloatingHeader.h and UIScrollView+IBFloatingHeader.m to your Xcode project.

Import UIScrollView+IBFloatingHeader.h on your desired UIViewController.

#import "UIScrollView+IBFloatingHeader.h"

Create a custom UIView and set it as the floating header for the UIScrollView/UITableView of your choice.

UIView* header = [[UIView alloc]initWithFrame:CGRectMake(0, 0, [[UIScreen mainScreen]bounds].size.width, 40)];
[header setBackgroundColor:[UIColor redColor]];
[self.scrollView setFloatingHeaderView:header];

Access the floating view by sending the floatingHeaderView message to the UIScrollView/UITableView

UIView* floatingHeaderView = [self.tableView floatingHeaderView];

Known Issues

None yet.

###Contributions

  • Contributions and suggestions are welcome.

About

Floating header view category for UIScrollView and UITableView

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.