FGTableHeaderView
一个方法实现表头部视图缩放
###Introduction
一个方法实现UITableView的头部视图缩放
###Install:
Cocopods:
- OC
1
pod 'FGTableHeaderView', '~> 1.0'
Manual:
Download FGTableHeaderView and drag”FGTableHeaderView” folder into projec.
- Swift
Download FGTableHeaderView and drag”FGHeaderView” folder into projec.
###Useage:
OC
1 | [_tbView fg_setHeaderFrame:CGRectMake(0, 0, self.view.frame.size.width, 150) image:[UIImage imageNamed:@"IMG_2174.jpg"]]; |
Swift
1 | tbView.fg_setHeaderView(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: 150), image: UIImage(named: "IMG_2174.jpg")) |
##About Me
Blog: CGPointZeero
GitHub: Insfgg99x
Mooc: CGPointZero
Jianshu: CGPointZero
Email: newbox0512@yahoo.com
I attached my code on github,touch to download:
OC版本GitHub地址:FGTableHeaderView
Swift版本GitHub地址:FGHeaderView
@CGPoitZero