Matej Balantič

3个pod

MBAutoGrowingTextView

基于自动布局的一个轻量级 UITextView 子类,根据用户输入的大小自动增长和收缩,可以通过最大和最小高度进行限制——这一切无需任何代码。

主要用于 Interface builder 中,并且只与自动布局一起使用。

主要功能:* 针对 iOS 7 设计,充分利用 Interface builder 和自动布局。* UITextView 的高度会自动根据用户输入的文字量增长或缩小 * wxTextView 的最大和最小高度可以在界面构建器中定义 * 当达到最大高度时,UITextView 内容将可滚动 * 完全功能无需任何代码

许可证:[MIT](https://api.github.com/licenses/mit)

  • Objective C

MBLocationManager

位置管理器提供方便、易于使用访问最新的 iOS 设备位置。它通过一个便利的单例类包装 CoreLocation,从而让您无需对位置管理器对象保持引用。

主要功能:* 用 3 行代码订阅位置更新 * 操作模式:GPS(准确,但电池续航差)和蜂窝塔(不准确,但电池续航好) * 使用 CoreLocation 的距离过滤器和高精度模式 * 在应用进入后台或前台时轻松暂停和恢复 * 只需实例化一次位置管理器,通过订阅通知在任何需要的地方使用

许可证:[MIT](https://api.github.com/licenses/mit)

  • Objective C

MBTraitCollection

特性集合自 iOS 8 以来就是新的,即使它们与最新 SDK 编译通过,对于8.0之前的部署目标,它们的使用将导致 iOS 7 应用程序崩溃。这使得它们在没有将应用程序部署目标限制为 8.0 之前没有用处。

           To solve that problem, I've created a category on UIViewController which exposes a new property mbTraitCollection. When accessing this property a backwards-compatible MBTraitCollection class will be lazy-loaded for you. Class is basically a wrapper around UITraitCollection and will use native behavior when possible (i.e. in iOS >= 8). On older iOS version, this class will use other available techniques to determine device characteristics for you, thus allowing you to use trait collection even on iOS 7.

许可证:[MIT](https://api.github.com/licenses/mit)

  • Objective C