/MRCommon

A collection of many commonly used method

Primary LanguageObjective-CMIT LicenseMIT

MRCommon

MRCommon A collection of many commonly used method, I according to the function is divided into the following classes:

  • [BaseInherit] - base class for inherit
  • [ESUnit] - Encapsulation Shader, Shapes, Transform of OpelGL ES 3.0.
  • [MRCategory] - A set of useful categories for Foundation and UIKit.
  • [MRCommonPackaging] - I according to the function is divided into several classes: MRCommonColorAndPicture: Processing images and color, MRCommonRuntime: Processing runtime, MRCommonString: Processing String, MRCommonTime: Processing time, MRCommonOther: Processing Others
  • [MRView] - Custom controls, Such as radio buttons, dropdownList, Filter column

Demo Project

The framework shows

See Example/ListView(下拉菜单栏)

See Example/DropDownView(筛选框)

See Example/SingleSwitch(单选框)

See Example/InputBox(输入框)

See Example/ChangeView(切换栏)

Installation

CocoaPods

  1. Add pod 'MRCommon' to your Podfile.
  2. Run pod install or pod update.
  3. import <MRCommon/MRCommon.h>.

Manually

  1. Download all the files in the MRCommon subdirectory.
  2. Add the source files to your Xcode project.
  3. Import MRCommon.h.

中文介绍

iOS 的常用封装
MRCommon 集合许多常用方法, 我按照功能分为以下类:

  • [BaseInherit] - 用来继承的基类
  • [ESUnit] - OpelGL ES 3.0 创建 Shader, Shapes, Transform 的封装.
  • [MRCategory] - 常用的分类
  • [MRCommonPackaging] - 我按照功能分为几个类, MRCommonColorAndPicture: 处理图片和颜色的封装, MRCommonRuntime: 处理 runtime 的封装, MRCommonString: 处理字符串的封装, MRCommonTime: 处理时间的封装, MRCommonOther: 其他项封装
  • [MRView] - 存放自定义控件, 如单选按钮, 下拉栏, 筛选栏等

演示项目

框架展示

查看并运行 Example/ListView(下拉菜单栏)

查看并运行 Example/DropDownView(筛选框)

查看并运行 Example/SingleSwitch(单选框)

查看并运行 Example/InputBox(输入框)

查看并运行 Example/ChangeView(切换栏)

安装

CocoaPods

  1. 在 Podfile 中添加 pod 'MRCommon'
  2. 执行 pod install 或者 pod update.
  3. 导入 <MRCommon/MRCommon.h>.

手动安装

下载 MRCommon 文件夹内的所有内容。
将 MRCommon 内的源文件添加(拖放)到你的工程即可。