SnapKit / Masonry

Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout
MIT License
18.06k stars 3.15k forks source link

Custom cell placed above two UILabel variable number of rows can not show the entire content on iphone5s ios8.4 #500

Open wuyuqiu opened 6 years ago

wuyuqiu commented 6 years ago

New Issue Checklist

🚫 If this template is not filled out your issue will be closed with no comment. 🚫

Issue Info

Info Value
Platform e.g. ios

![Uploading Simulator Screen Shot - iPhone 5s - 2017-12-19 at 18.51.59.png…]()

Platform Version | e.g. 8.4 Masonry Version | e.g. 1.1.0 Integration Method | e.g. carthage/cocoapods/manually

Issue Description

⚠️ Custom cell placed above two UILabel variable number of rows can not show the entire content

TableView code :

-(UITableView *)tableView { if (_tableView==nil) { _tableView = [[TableView alloc] init]; _tableView.delegate=self; _tableView.dataSource=self; _tableView.estimatedRowHeight =49; _tableView.tableFooterView = [UIView new]; _tableView.separatorStyle = UITableViewCellSeparatorStyleNone; } return _tableView; }

Custom tableViewCell code like this: // // AutoTableViewCell.m // AutoTableView //

import "AutoTableViewCell.h"

import "RowsModel.h"

@interface AutoTableViewCell ()

@property (nonatomic, strong) UILabel title_label; @property (nonatomic, strong) UILabel detail_label;

@end

@implementation AutoTableViewCell

pragma mark - setter

pragma mark - autolayout

@end ⚠️

wuyuqiu commented 6 years ago

As the picture shows

simulator screen shot - iphone 5s - 2017-12-19 at 18 51 59