Skip to content

UIHidingView is an iOS class that displays UIView element on top UITableView which is hiding when Table View is scrolling.

License

Notifications You must be signed in to change notification settings

yoman07/UIHidingView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UIHidingView


UIHidingView is an iOS class that displays UIView element on top UITableView which is hiding when Table View is scrolling.


Adding UIHidingView to your project

Source files

The simplest way to add the UIHidingView to your project is to directly add the UIView+HidingView.h and UIView+HidingView.m source files to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, than drag and drop UIView+HidingView.h and UIView+HidingView.m onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. Include UIHidingView wherever you need it with "#import UIView+HidingView.h" .

Usage

You must override yours UITableView class like this:

- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
    [self.hidingView scrollViewWillBeginDragging:scrollView];
}
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
    [self.hidingView scrollViewDidScroll:scrollView];
}

});

For more examples take a look at the bundled demo project.

License

This code is distributed under the terms and conditions of the MIT license.

About

UIHidingView is an iOS class that displays UIView element on top UITableView which is hiding when Table View is scrolling.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published