Latest 1.0.0
Homepage https://github.com/MTT-IOS/UITableView-MTTHeaderFooterFittingHeight
License MIT
Platforms ios 7.0, requires ARC
Authors

UITableView-MTTHeaderFooterFittingHeight

中文介绍

Compute UITableView HeaderFooter height using AutoLayout

Installation

UITableView-MTTHeaderFooterFittingHeight is available on CocoaPods. Just add the following to your project Podfile:

pod 'UITableView-MTTHeaderFooterFittingHeight'

Usage

See dome Xcode project in /MTTHeaderFooterFittingHeight

#import "MTTHeaderFooterFittingHeight.h"

TableHeaderView

 [tableView mtt_updateTableHeaderViewHeightWithAnimated:(BOOL)];

or

[tableView mtt_updateTableHeaderViewHeightWithConfig:^(id view) {
        UIView* tableHeaderView = view;
        //config TableHeaderView
    } animated:(BOOL)];

TableFooterView

 [tableView mtt_updateTableFooterViewHeightWithAnimated:(BOOL)];

or

[tableView mtt_updateTableFooterViewHeightWithConfig:^(id view) {
        UIView* tableFooerView = view;
        //config TableFooerView
    } animated:(BOOL)];

License

MIT

Latest podspec

{
    "name": "UITableView+MTTHeaderFooterFittingHeight",
    "version": "1.0.0",
    "summary": "Compute UITableView HeaderFooter height using Auto-Layout",
    "homepage": "https://github.com/MTT-IOS/UITableView-MTTHeaderFooterFittingHeight",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "MTT": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/MTT-IOS/UITableView-MTTHeaderFooterFittingHeight",
        "tag": "1.0.0"
    },
    "source_files": "Classes/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This