MLEstimatedViewHeight 0.1.2

MLEstimatedViewHeight 0.1.2

Mars 维护。



  • Mars

MLEstimatedViewHeight

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从示例目录运行 pod install

要求

此库需要 iOS 8.0+

安装

MLEstimatedViewHeight 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod 'MLEstimatedViewHeight'

演示

如何使用

#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) {

   }];

作者

火星,[email protected]

许可证

MLEstimatedViewHeight 适用于 MIT 许可证。更多详情请参阅 LICENSE 文件。