https://github.com/czl0325/zlpageview
GitHub上唯一支持autolayout的tablayout。
https://github.com/czl0325/zlpageview
Last synced: 3 months ago
JSON representation
GitHub上唯一支持autolayout的tablayout。
- Host: GitHub
- URL: https://github.com/czl0325/zlpageview
- Owner: czl0325
- License: apache-2.0
- Created: 2018-07-13T03:12:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T08:14:32.000Z (over 5 years ago)
- Last Synced: 2025-02-23T05:35:34.144Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 550 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZLPageView
GitHub上唯一支持autolayout的tablayout。支持cocoapods。
```
pod 'ZLPageView'
```
## 使用方法
```
- (ZLPageView*)pageView {
if (!_pageView) {
_pageView = [[ZLPageView alloc]initWithFrame:CGRectZero];
_pageView.titleHeight = 50;
_pageView.indicatorColor = [UIColor colorWithWhite:0.4 alpha:1.0];
_pageView.titleHighlightColor = [UIColor redColor];
_pageView.titleCanScorll = YES;
_pageView.indicatorStyle = Block;
}
return _pageView;
}
```### 调用
```
[self.view addSubview:self.pageView];
[self.pageView setTitles:array1 viewcontrollers:vcs];
[self.pageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.mas_equalTo(self.view);
}];
```