Latest 2.0
Homepage https://github.com/Insfgg99x/FGTableHeaderView
License MIT
Platforms ios 6.0, requires ARC
Dependencies SDWebImage
Frameworks Foundation, UIKit
Authors

FGTableHeaderView

Cocoapods Compatible
Pod Version
Pod Platform
一个方法实现表头部视图缩放
演示

Guideline


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

  • [x] 加载本地图片
  • [x] 加载网络图片

Installation:

Cocopods:
pod 'FGTableHeaderView', '~> 2.0'

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

Useage:

  • load local image
[_tbView fg_setHeaderFrame:CGRectMake(0, 0, self.view.frame.size.width, 150) image:[UIImage imageNamed:@"IMG_2174.jpg"]];
  • load web image
[_tbView fg_setHeaderFrame:CGRectMake(0, 0, self.view.frame.size.width, 150)
imageUrl:[NSURL URLWithString:@"http://upload-images.jianshu.io/upload_images/937405-fa2ec7eee51227f7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"]
placeHolder:nil];

Support Me

万水千山总是情,给个star行不行._. 项目地址

Copyright(c) 2016 CGPointZero. All rights reserved.

Latest podspec

{
    "name": "FGTableHeaderView",
    "version": "2.0",
    "summary": "FGTableHeaderViewu4e00u4e2au65b9u6cd5u5b9eu73b0u8868u5934u90e8u89c6u56feu7f29u653e",
    "homepage": "https://github.com/Insfgg99x/FGTableHeaderView",
    "license": "MIT",
    "authors": {
        "CGPointZero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Insfgg99x/FGTableHeaderView.git",
        "tag": "2.0"
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "FGTableHeaderView/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This