MXCardLayout reproduces the behavior seen in iOS9's multitasking switcher.
MXCardLayout是仿iOS9多任务切换实现的一个卡片流布局。
There are two ways to use MXCardLayout in your project:
- using CocoaPods
- copying all the files into your project
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Started section for more details.
platform :ios, '8.1'
pod 'MXCardLayout'
If you are using Swift, be sure to add use_frameworks!
and set your target to iOS 8+:
platform :ios, '8.0'
use_frameworks!
pod 'MXCardLayout'
- Create a UICollectionViewController with MXCardLayout
MXCardLayout *layout = [[MXCardLayout alloc] init];
layout.itemSize = CGSizeMake(100,150);
UICollectionViewController *vc = [[UICollectionViewController alloc] initWithCollectionViewLayout:layout];
- Initial Build
###License MXCardLayout is released under a MIT License. See LICENSE file for details.