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
See Example/dropdown下拉栏.xcodeproj
See Example/Filter box 筛选框.xcodeproj
See Radio buttons 单选框.xcodeproj
See Radio buttons InputBox输入框.xcodeproj
See Radio MRChangeViewDemo.xcodeproj
- Add
pod 'MRCommon'
to your Podfile. - Run
pod install
orpod update
. - import <MRCommon/MRCommon.h>.
- Download all the files in the
MRCommon
subdirectory. - Add the source files to your Xcode project.
- 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
- 在 Podfile 中添加
pod 'MRCommon'
- 执行
pod install
或者pod update
. - 导入 <MRCommon/MRCommon.h>.
下载 MRCommon 文件夹内的所有内容。
将 MRCommon 内的源文件添加(拖放)到你的工程即可。