Latest 0.0.5
Homepage https://github.com/matrixs/MAXTableView
License GNU
Platforms ios
Frameworks UIKit, Foundation
Authors

MAXTableView is an extension for UITableView and UITableViewCell. It’s aimed to calculate cells’ height which are layout based on AutoLayout automatically for you.
It caches cell height during calculation process for optimization, and making it work is very easy.

Installation

MAXTableView is available on CocoaPods. Just add the following to you project Podfile:

pod 'MAXTableView', '~>0.0.5'

Bugs are first fixed in master and then made available via a designated release. If you tend to live on the bleeding edge, you can use Pop from
master with the following Podfile entry:

pod 'MAXTableView', :git=>'https://github.com/matrixs/MAXTableView.git'

Usage

Use by including the follwing import:

#import "UITableView+MAXTableView.h"
NSMutableArray *data = [NSMutableArray new];
[yourTableView registerClass:[YourCustomCell class] bindDataSource:data delegate:self];
... //data manipulation
[yourTableView reloadData];

And then in YourCustomCell class, you need implement below method:

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    ...// Use autolayout to layout your content
}
-(void)fillData:(id)data {
    ...// set data to your UIKit elements' property
}

Contributing

See the CONTRIBUTING file for how to help out.

License

Pop is released under a GNU License. See LICENSE file for details.

Latest podspec

{
    "name": "MAXTableView",
    "version": "0.0.5",
    "summary": "Use TableView easily.",
    "description": "Use autolayout to calculate and cache tableview cell height automatically just by one line code",
    "homepage": "https://github.com/matrixs/MAXTableView",
    "license": "GNU",
    "authors": {
        "matrixs": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/matrixs/MAXTableView.git",
        "tag": "0.0.5",
        "branch": "master"
    },
    "source_files": [
        "Source",
        "Source/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "frameworks": [
        "UIKit",
        "Foundation"
    ]
}

Pin It on Pinterest

Share This