UIHidingView is an iOS class that displays UIView element on top UITableView which is hiding when Table View is scrolling.
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.
- Download the latest code version or add the repository as a git submodule to your git-tracked project.
- Open your project in Xcode, than drag and drop
UIView+HidingView.h
andUIView+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. - Include UIHidingView wherever you need it with
"#import UIView+HidingView.h"
.
You must override yours UITableView class like this:
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
[self.hidingView scrollViewWillBeginDragging:scrollView];
}
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
[self.hidingView scrollViewDidScroll:scrollView];
}
});
This code is distributed under the terms and conditions of the MIT license.