[Swift 3.0]一个方法一行代码实现UITableView头部视图缩放

FGTableHeaderView

一个方法实现表头部视图缩放

Introduction


一个方法实现UITableView的头部视图缩放

Install:

Cocopods:

  • OC
pod 'FGTableHeaderView', '~> 1.0'

Manual:
Download FGTableHeaderView and drag"FGTableHeaderView" folder into projec.

  • Swift
    Download FGTableHeaderView and drag"FGHeaderView" folder into projec.

Useage:

OC

[_tbView fg_setHeaderFrame:CGRectMake(0, 0, self.view.frame.size.width, 150) image:[UIImage imageNamed:@"IMG_2174.jpg"]];

Swift

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: [email protected]

I attached my code on github,touch to download:

OC版本GitHub地址:FGTableHeaderView
Swift版本GitHub地址:FGHeaderView


@CGPoitZero

[Swift 3.0]一个方法一行代码实现UITableView头部视图缩放_第1张图片

你可能感兴趣的:([Swift 3.0]一个方法一行代码实现UITableView头部视图缩放)