/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:

  • [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/dropdown下拉栏.xcodeproj

See Example/Filter box 筛选框.xcodeproj

See Radio buttons 单选框.xcodeproj

See Radio buttons InputBox输入框.xcodeproj

See Radio MRChangeViewDemo.xcodeproj

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 集合许多常用方法, 我按照功能分为以下类:

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

演示项目

框架展示

查看并运行 Example/dropdown下拉栏.xcodeproj

查看并运行 Example/Filter box 筛选框.xcodeproj

查看并运行 Radio buttons 单选框.xcodeproj

查看并运行 Radio buttons InputBox输入框.xcodeproj

查看并运行 Radio MRChangeViewDemo.xcodeproj

安装

CocoaPods

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

手动安装

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