MLEstimatedViewHeight 0.1.2

MLEstimatedViewHeight 0.1.2

Maintained by Mars.



  • By
  • Mars

MLEstimatedViewHeight

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

This library requires iOS 8.0+

Installation

MLEstimatedViewHeight is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'MLEstimatedViewHeight'

演示

How To Use

#import <MLEstimatedViewHeight/UIView+MLHeight.h>

//Calculate view height immediately
1、self.testView.mlHeight;

//Complex view height calculation(Time-consuming operation)
2、[self.testView mlHeightBlock:^(float mlHeight) {

   }];

中文介绍

MLEstimatedViewHeight 是基于约束和scrollview来计算视图高度的工具。

如何使用

#import <MLEstimatedViewHeight/UIView+MLHeight.h>

//立即计算视图高度
1、self.testView.mlHeight;

//复杂视图高度计算(耗时操作)
2、[self.testView mlHeightBlock:^(float mlHeight) {

   }];

Author

Mars, [email protected]

License

MLEstimatedViewHeight is available under the MIT license. See the LICENSE file for more info.