Skip to content

werfe/SegmentHeaderView

Repository files navigation

SegmentHeaderView (like Skype)

Video Demo

Installation

  • via werfe: github "werfe/SegmentHeaderView"
  • or copy SegmentHeaderView folder to your project

Usage

  • Import UISCrollView+SegmentHeader category to your table/scroll/colleciton view
#import "UISCrollView+SegmentHeader.h"
  • In "viewDidAppear"
-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    _tableView.enabledSegment = YES;
    //Do not forget add target action for Segment
    [_tableView.segmentHeaderView.segmentControl addTarget:self action:@selector(segmentControlDidClicked:) forControlEvents: UIControlEventValueChanged];
}
  • Add a method required
#pragma mark - methods required
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
    [_tableView scrollViewDidScroll:scrollView];
}
  • That's it!

Contact

License

The MIT License (MIT)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published