├── lol.gif ├── WZXLoLCardDemo ├── Assets.xcassets │ ├── Contents.json │ ├── img │ │ ├── Contents.json │ │ ├── img0.imageset │ │ │ ├── img0.jpg │ │ │ └── Contents.json │ │ ├── img1.imageset │ │ │ ├── img1.jpg │ │ │ └── Contents.json │ │ ├── img2.imageset │ │ │ ├── img2.jpg │ │ │ └── Contents.json │ │ ├── img3.imageset │ │ │ ├── img3.jpg │ │ │ └── Contents.json │ │ ├── img4.imageset │ │ │ ├── img4.jpg │ │ │ └── Contents.json │ │ ├── img5.imageset │ │ │ ├── img5.jpg │ │ │ └── Contents.json │ │ ├── img6.imageset │ │ │ ├── img6.jpg │ │ │ └── Contents.json │ │ ├── img7.imageset │ │ │ ├── img7.jpg │ │ │ └── Contents.json │ │ ├── img8.imageset │ │ │ ├── img8.jpg │ │ │ └── Contents.json │ │ ├── img9.imageset │ │ │ ├── img9.jpg │ │ │ └── Contents.json │ │ ├── img10.imageset │ │ │ ├── img10.jpg │ │ │ └── Contents.json │ │ ├── img11.imageset │ │ │ ├── img11.jpg │ │ │ └── Contents.json │ │ ├── img12.imageset │ │ │ ├── img12.jpg │ │ │ └── Contents.json │ │ ├── img13.imageset │ │ │ ├── img13.jpg │ │ │ └── Contents.json │ │ └── img14.imageset │ │ │ ├── img14.jpg │ │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── ViewController.h ├── WZXLOLCardLayout.h ├── AppDelegate.h ├── main.m ├── Info.plist ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard ├── AppDelegate.m ├── ViewController.m └── WZXLOLCardLayout.m ├── WZXLoLCardDemo.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── Wordoor-Z.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcuserdata │ └── Wordoor-Z.xcuserdatad │ │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── WZXLoLCardDemo.xcscheme └── project.pbxproj ├── README.md ├── WZXLoLCardDemoTests ├── Info.plist └── WZXLoLCardDemoTests.m └── WZXLoLCardDemoUITests ├── Info.plist └── WZXLoLCardDemoUITests.m /lol.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/lol.gif -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img0.imageset/img0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img0.imageset/img0.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img1.imageset/img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img1.imageset/img1.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img2.imageset/img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img2.imageset/img2.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img3.imageset/img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img3.imageset/img3.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img4.imageset/img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img4.imageset/img4.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img5.imageset/img5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img5.imageset/img5.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img6.imageset/img6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img6.imageset/img6.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img7.imageset/img7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img7.imageset/img7.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img8.imageset/img8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img8.imageset/img8.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img9.imageset/img9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img9.imageset/img9.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img10.imageset/img10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img10.imageset/img10.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img11.imageset/img11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img11.imageset/img11.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img12.imageset/img12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img12.imageset/img12.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img13.imageset/img13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img13.imageset/img13.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img14.imageset/img14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo/Assets.xcassets/img/img14.imageset/img14.jpg -------------------------------------------------------------------------------- /WZXLoLCardDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WZXLoLCardDemo.xcodeproj/project.xcworkspace/xcuserdata/Wordoor-Z.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wzxha/WZXLOLCardView/HEAD/WZXLoLCardDemo.xcodeproj/project.xcworkspace/xcuserdata/Wordoor-Z.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /WZXLoLCardDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // WZXLoLCardDemo 4 | // 5 | // Created by wordoor-z on 16/1/12. 6 | // Copyright © 2016年 wzx. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/WZXLOLCardLayout.h: -------------------------------------------------------------------------------- 1 | // 2 | // WZXLOLCardLayout.h 3 | // WZXLoLCardDemo 4 | // 5 | // Created by wordoor-z on 16/1/12. 6 | // Copyright © 2016年 wzx. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WZXLOLCardLayout : UICollectionViewFlowLayout 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WZXLOLCardView 2 | ###Demo 3 | 用自定义CollectionViewFlowLayout来实现的LOL皮肤选择效果,注释详细. 4 |
5 |
6 | 参考了LineLayout 7 |
8 |
9 | ###效果图 10 | ![image](https://github.com/Wzxhaha/WZXLOLCardView/raw/master/lol.gif) 11 |
12 |
13 | ###PS 14 | 更加详细的讲解将在[简书:WzxJiang](http://www.jianshu.com/users/389c20d5a244/latest_articles)上讲解 15 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // WZXLoLCardDemo 4 | // 5 | // Created by wordoor-z on 16/1/12. 6 | // Copyright © 2016年 wzx. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WZXLoLCardDemo 4 | // 5 | // Created by wordoor-z on 16/1/12. 6 | // Copyright © 2016年 wzx. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img0.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img0.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img1.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img10.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img10.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img11.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img11.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img12.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img12.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img13.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img13.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img14.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img14.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img2.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img3.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img4.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img5.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img5.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img6.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img6.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img7.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img7.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img8.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img8.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/img/img9.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "img9.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WZXLoLCardDemo.xcodeproj/xcuserdata/Wordoor-Z.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /WZXLoLCardDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /WZXLoLCardDemoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /WZXLoLCardDemo.xcodeproj/xcuserdata/Wordoor-Z.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | WZXLoLCardDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 4BB316C71C44F53F00729460 16 | 17 | primary 18 | 19 | 20 | 4BB316E01C44F53F00729460 21 | 22 | primary 23 | 24 | 25 | 4BB316EB1C44F53F00729460 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /WZXLoLCardDemoTests/WZXLoLCardDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // WZXLoLCardDemoTests.m 3 | // WZXLoLCardDemoTests 4 | // 5 | // Created by wordoor-z on 16/1/12. 6 | // Copyright © 2016年 wzx. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WZXLoLCardDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation WZXLoLCardDemoTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /WZXLoLCardDemoUITests/WZXLoLCardDemoUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // WZXLoLCardDemoUITests.m 3 | // WZXLoLCardDemoUITests 4 | // 5 | // Created by wordoor-z on 16/1/12. 6 | // Copyright © 2016年 wzx. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WZXLoLCardDemoUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation WZXLoLCardDemoUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // WZXLoLCardDemo 4 | // 5 | // Created by wordoor-z on 16/1/12. 6 | // Copyright © 2016年 wzx. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // WZXLoLCardDemo 4 | // 5 | // Created by wordoor-z on 16/1/12. 6 | // Copyright © 2016年 wzx. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "WZXLOLCardLayout.h" 11 | @interface ViewController () 12 | 13 | /** 14 | * collectionView; 15 | */ 16 | @property(nonatomic,strong)UICollectionView * cardView; 17 | 18 | /** 19 | * 存放img名字的数组; 20 | */ 21 | @property(nonatomic,strong)NSMutableArray * imgArr; 22 | 23 | @end 24 | 25 | @implementation ViewController 26 | 27 | - (void)viewDidLoad { 28 | [super viewDidLoad]; 29 | // Do any additional setup after loading the view, typically from a nib. 30 | [self getData]; 31 | [self createCardView]; 32 | } 33 | 34 | - (void)getData 35 | { 36 | _imgArr = [[NSMutableArray alloc]init]; 37 | 38 | for (int i = 0 ;i < 14; i++) 39 | { 40 | NSString * str = [NSString stringWithFormat:@"img%d.jpg",i]; 41 | [_imgArr addObject:str]; 42 | } 43 | } 44 | //创建collectionview 45 | - (void)createCardView 46 | { 47 | WZXLOLCardLayout * flowLayout = [[WZXLOLCardLayout alloc]init]; 48 | _cardView = ({ 49 | UICollectionView * collectionView = [[UICollectionView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) collectionViewLayout:flowLayout]; 50 | 51 | collectionView.delegate = self; 52 | collectionView.dataSource = self; 53 | 54 | //提前注册 55 | [collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"cell"]; 56 | 57 | collectionView; 58 | }); 59 | [self.view addSubview:_cardView]; 60 | } 61 | 62 | #pragma mark -- collectionView DataSource 63 | 64 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section 65 | { 66 | return _imgArr.count; 67 | } 68 | 69 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath 70 | { 71 | UICollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath]; 72 | cell.backgroundColor = [UIColor whiteColor]; 73 | 74 | //先清空subviews 防止重影 有更好的方法一定要告诉我 75 | for (UIView * view in cell.contentView.subviews) 76 | { 77 | [view removeFromSuperview]; 78 | } 79 | 80 | UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, cell.contentView.frame.size.width, cell.contentView.frame.size.height)]; 81 | imageView.layer.shadowColor = [UIColor whiteColor].CGColor; 82 | imageView.layer.shadowOffset = CGSizeMake(0.5, 0.5); 83 | imageView.layer.shadowRadius = 5; 84 | imageView.layer.shadowOpacity = 0.8; 85 | imageView.image = [UIImage imageNamed:_imgArr[indexPath.row]]; 86 | 87 | //一定要添加到cell.contentView上 88 | [cell.contentView addSubview:imageView]; 89 | 90 | return cell; 91 | } 92 | 93 | - (void)didReceiveMemoryWarning { 94 | [super didReceiveMemoryWarning]; 95 | // Dispose of any resources that can be recreated. 96 | } 97 | 98 | @end 99 | -------------------------------------------------------------------------------- /WZXLoLCardDemo/WZXLOLCardLayout.m: -------------------------------------------------------------------------------- 1 | 2 | 3 | #import "WZXLOLCardLayout.h" 4 | 5 | 6 | @implementation WZXLOLCardLayout 7 | 8 | //完成一个过程需要的位移 9 | #define ACTIVE_DISTANCE 200 10 | #define ZOOM_FACTOR 0.3 11 | 12 | #define GiveMeHeight(HEIGTH) (HEIGTH*[UIScreen mainScreen].bounds.size.height/736.0) 13 | #define GiveMeWidth(WIDTH) (WIDTH*[UIScreen mainScreen].bounds.size.width/414.0) 14 | 15 | //第一个要重写的方法 设置基本的大小 16 | - (void)prepareLayout 17 | { 18 | //cell大小 19 | self.itemSize = CGSizeMake(GiveMeWidth(300),GiveMeHeight(500)); 20 | //滑动方向 21 | self.scrollDirection = UICollectionViewScrollDirectionHorizontal; 22 | //组间四个方位间距 23 | self.sectionInset = UIEdgeInsetsMake(200, 50.0, 200, 50.0); 24 | //列间距 25 | self.minimumLineSpacing = 0.0; 26 | } 27 | 28 | //允许更新位置 29 | - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)oldBounds 30 | { 31 | return YES; 32 | } 33 | 34 | //最大旋转角度 35 | #define rotate 35.0*M_PI/180.0 36 | //返回一个rect位置下所有cell的位置数组 37 | - (NSArray*)layoutAttributesForElementsInRect:(CGRect)rect 38 | { 39 | //得到所有的UICollectionViewLayoutAttributes 40 | NSArray* array = [super layoutAttributesForElementsInRect:rect]; 41 | 42 | CGRect visibleRect; 43 | visibleRect.origin = self.collectionView.contentOffset; 44 | visibleRect.size = self.collectionView.bounds.size; 45 | 46 | for (UICollectionViewLayoutAttributes* attributes in array) { 47 | 48 | //cell中心离collectionview中心的位移 49 | //CGRectGetMidX表示得到一个frame中心点的X坐标 50 | CGFloat distance = CGRectGetMidX(visibleRect) - attributes.center.x; 51 | 52 | //CGRectIntersectsRect 判断两个矩形是否相交 53 | //这里判断当前这个cell在不在rect矩形里 54 | if (CGRectIntersectsRect(attributes.frame, rect)) 55 | { 56 | CGFloat normalizedDistance = distance / ACTIVE_DISTANCE; 57 | 58 | //ABS 绝对值 59 | //如果位移小于一个过程所需的位移 60 | if (ABS(distance) < ACTIVE_DISTANCE) 61 | { 62 | //normalizedDistance 当前位移比上完成一个过程所需位移 得到不完全过程的旋转角度 63 | CGFloat zoom = rotate*normalizedDistance; 64 | CATransform3D transfrom = CATransform3DIdentity; 65 | transfrom.m34 = 1.0 / 600; 66 | transfrom = CATransform3DRotate(transfrom, -zoom, 0.0f, 1.0f, 0.0f); 67 | attributes.transform3D = transfrom; 68 | attributes.zIndex = 1; 69 | 70 | } 71 | else 72 | { 73 | CATransform3D transfrom = CATransform3DIdentity; 74 | transfrom.m34 = 1.0 / 600; 75 | //向右滑 76 | if (distance>0) 77 | { 78 | transfrom = CATransform3DRotate(transfrom, -rotate, 0.0f, 1.0f, 0.0f); 79 | 80 | } 81 | //向左滑 82 | else 83 | { 84 | transfrom = CATransform3DRotate(transfrom, rotate, 0.0f, 1.0f, 0.0f); 85 | } 86 | 87 | attributes.transform3D = transfrom; 88 | attributes.zIndex = 1; 89 | } 90 | 91 | } 92 | } 93 | return array; 94 | } 95 | 96 | //类似于scrollview的scrollViewWillEndDragging 97 | //proposedContentOffset是没有对齐到网格时本来应该停下的位置 98 | - (CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset withScrollingVelocity:(CGPoint)velocity 99 | { 100 | CGFloat offsetAdjustment = MAXFLOAT; 101 | 102 | //CGRectGetWidth: 返回矩形的宽度 103 | CGFloat horizontalCenter = proposedContentOffset.x + (CGRectGetWidth(self.collectionView.bounds) / 2.0); 104 | 105 | //当前rect 106 | CGRect targetRect = CGRectMake(proposedContentOffset.x, 0, self.collectionView.bounds.size.width, self.collectionView.bounds.size.height); 107 | 108 | NSArray* array = [super layoutAttributesForElementsInRect:targetRect]; 109 | //对当前屏幕中的UICollectionViewLayoutAttributes逐个与屏幕中心进行比较,找出最接近中心的一个 110 | for (UICollectionViewLayoutAttributes* layoutAttributes in array) 111 | { 112 | CGFloat itemHorizontalCenter = layoutAttributes.center.x; 113 | if (ABS(itemHorizontalCenter - horizontalCenter) < ABS(offsetAdjustment)) 114 | { 115 | //与中心的位移差 116 | offsetAdjustment = itemHorizontalCenter - horizontalCenter; 117 | } 118 | } 119 | //返回修改后停下的位置 120 | return CGPointMake(proposedContentOffset.x + offsetAdjustment, proposedContentOffset.y); 121 | } 122 | 123 | @end -------------------------------------------------------------------------------- /WZXLoLCardDemo.xcodeproj/xcuserdata/Wordoor-Z.xcuserdatad/xcschemes/WZXLoLCardDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /WZXLoLCardDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 4BB316CD1C44F53F00729460 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BB316CC1C44F53F00729460 /* main.m */; }; 11 | 4BB316D01C44F53F00729460 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BB316CF1C44F53F00729460 /* AppDelegate.m */; }; 12 | 4BB316D31C44F53F00729460 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BB316D21C44F53F00729460 /* ViewController.m */; }; 13 | 4BB316D61C44F53F00729460 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4BB316D41C44F53F00729460 /* Main.storyboard */; }; 14 | 4BB316D81C44F53F00729460 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4BB316D71C44F53F00729460 /* Assets.xcassets */; }; 15 | 4BB316DB1C44F53F00729460 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4BB316D91C44F53F00729460 /* LaunchScreen.storyboard */; }; 16 | 4BB316E61C44F53F00729460 /* WZXLoLCardDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BB316E51C44F53F00729460 /* WZXLoLCardDemoTests.m */; }; 17 | 4BB316F11C44F53F00729460 /* WZXLoLCardDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BB316F01C44F53F00729460 /* WZXLoLCardDemoUITests.m */; }; 18 | 4BB317001C44F60400729460 /* WZXLOLCardLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BB316FF1C44F60400729460 /* WZXLOLCardLayout.m */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 4BB316E21C44F53F00729460 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 4BB316C01C44F53F00729460 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 4BB316C71C44F53F00729460; 27 | remoteInfo = WZXLoLCardDemo; 28 | }; 29 | 4BB316ED1C44F53F00729460 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 4BB316C01C44F53F00729460 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 4BB316C71C44F53F00729460; 34 | remoteInfo = WZXLoLCardDemo; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 4BB316C81C44F53F00729460 /* WZXLoLCardDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WZXLoLCardDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 4BB316CC1C44F53F00729460 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 41 | 4BB316CE1C44F53F00729460 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 42 | 4BB316CF1C44F53F00729460 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 43 | 4BB316D11C44F53F00729460 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 44 | 4BB316D21C44F53F00729460 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 45 | 4BB316D51C44F53F00729460 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 4BB316D71C44F53F00729460 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | 4BB316DA1C44F53F00729460 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | 4BB316DC1C44F53F00729460 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 4BB316E11C44F53F00729460 /* WZXLoLCardDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WZXLoLCardDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 4BB316E51C44F53F00729460 /* WZXLoLCardDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WZXLoLCardDemoTests.m; sourceTree = ""; }; 51 | 4BB316E71C44F53F00729460 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 4BB316EC1C44F53F00729460 /* WZXLoLCardDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WZXLoLCardDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 4BB316F01C44F53F00729460 /* WZXLoLCardDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WZXLoLCardDemoUITests.m; sourceTree = ""; }; 54 | 4BB316F21C44F53F00729460 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 4BB316FE1C44F60400729460 /* WZXLOLCardLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WZXLOLCardLayout.h; sourceTree = ""; }; 56 | 4BB316FF1C44F60400729460 /* WZXLOLCardLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WZXLOLCardLayout.m; sourceTree = ""; }; 57 | /* End PBXFileReference section */ 58 | 59 | /* Begin PBXFrameworksBuildPhase section */ 60 | 4BB316C51C44F53F00729460 /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 4BB316DE1C44F53F00729460 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | 4BB316E91C44F53F00729460 /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | /* End PBXFrameworksBuildPhase section */ 82 | 83 | /* Begin PBXGroup section */ 84 | 4BB316BF1C44F53F00729460 = { 85 | isa = PBXGroup; 86 | children = ( 87 | 4BB316CA1C44F53F00729460 /* WZXLoLCardDemo */, 88 | 4BB316E41C44F53F00729460 /* WZXLoLCardDemoTests */, 89 | 4BB316EF1C44F53F00729460 /* WZXLoLCardDemoUITests */, 90 | 4BB316C91C44F53F00729460 /* Products */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 4BB316C91C44F53F00729460 /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 4BB316C81C44F53F00729460 /* WZXLoLCardDemo.app */, 98 | 4BB316E11C44F53F00729460 /* WZXLoLCardDemoTests.xctest */, 99 | 4BB316EC1C44F53F00729460 /* WZXLoLCardDemoUITests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 4BB316CA1C44F53F00729460 /* WZXLoLCardDemo */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 4BB316FE1C44F60400729460 /* WZXLOLCardLayout.h */, 108 | 4BB316FF1C44F60400729460 /* WZXLOLCardLayout.m */, 109 | 4BB316CE1C44F53F00729460 /* AppDelegate.h */, 110 | 4BB316CF1C44F53F00729460 /* AppDelegate.m */, 111 | 4BB316D11C44F53F00729460 /* ViewController.h */, 112 | 4BB316D21C44F53F00729460 /* ViewController.m */, 113 | 4BB316D41C44F53F00729460 /* Main.storyboard */, 114 | 4BB316D91C44F53F00729460 /* LaunchScreen.storyboard */, 115 | 4BB316CB1C44F53F00729460 /* Supporting Files */, 116 | ); 117 | path = WZXLoLCardDemo; 118 | sourceTree = ""; 119 | }; 120 | 4BB316CB1C44F53F00729460 /* Supporting Files */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 4BB316DC1C44F53F00729460 /* Info.plist */, 124 | 4BB316D71C44F53F00729460 /* Assets.xcassets */, 125 | 4BB316CC1C44F53F00729460 /* main.m */, 126 | ); 127 | name = "Supporting Files"; 128 | sourceTree = ""; 129 | }; 130 | 4BB316E41C44F53F00729460 /* WZXLoLCardDemoTests */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 4BB316E51C44F53F00729460 /* WZXLoLCardDemoTests.m */, 134 | 4BB316E71C44F53F00729460 /* Info.plist */, 135 | ); 136 | path = WZXLoLCardDemoTests; 137 | sourceTree = ""; 138 | }; 139 | 4BB316EF1C44F53F00729460 /* WZXLoLCardDemoUITests */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 4BB316F01C44F53F00729460 /* WZXLoLCardDemoUITests.m */, 143 | 4BB316F21C44F53F00729460 /* Info.plist */, 144 | ); 145 | path = WZXLoLCardDemoUITests; 146 | sourceTree = ""; 147 | }; 148 | /* End PBXGroup section */ 149 | 150 | /* Begin PBXNativeTarget section */ 151 | 4BB316C71C44F53F00729460 /* WZXLoLCardDemo */ = { 152 | isa = PBXNativeTarget; 153 | buildConfigurationList = 4BB316F51C44F53F00729460 /* Build configuration list for PBXNativeTarget "WZXLoLCardDemo" */; 154 | buildPhases = ( 155 | 4BB316C41C44F53F00729460 /* Sources */, 156 | 4BB316C51C44F53F00729460 /* Frameworks */, 157 | 4BB316C61C44F53F00729460 /* Resources */, 158 | ); 159 | buildRules = ( 160 | ); 161 | dependencies = ( 162 | ); 163 | name = WZXLoLCardDemo; 164 | productName = WZXLoLCardDemo; 165 | productReference = 4BB316C81C44F53F00729460 /* WZXLoLCardDemo.app */; 166 | productType = "com.apple.product-type.application"; 167 | }; 168 | 4BB316E01C44F53F00729460 /* WZXLoLCardDemoTests */ = { 169 | isa = PBXNativeTarget; 170 | buildConfigurationList = 4BB316F81C44F53F00729460 /* Build configuration list for PBXNativeTarget "WZXLoLCardDemoTests" */; 171 | buildPhases = ( 172 | 4BB316DD1C44F53F00729460 /* Sources */, 173 | 4BB316DE1C44F53F00729460 /* Frameworks */, 174 | 4BB316DF1C44F53F00729460 /* Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | 4BB316E31C44F53F00729460 /* PBXTargetDependency */, 180 | ); 181 | name = WZXLoLCardDemoTests; 182 | productName = WZXLoLCardDemoTests; 183 | productReference = 4BB316E11C44F53F00729460 /* WZXLoLCardDemoTests.xctest */; 184 | productType = "com.apple.product-type.bundle.unit-test"; 185 | }; 186 | 4BB316EB1C44F53F00729460 /* WZXLoLCardDemoUITests */ = { 187 | isa = PBXNativeTarget; 188 | buildConfigurationList = 4BB316FB1C44F53F00729460 /* Build configuration list for PBXNativeTarget "WZXLoLCardDemoUITests" */; 189 | buildPhases = ( 190 | 4BB316E81C44F53F00729460 /* Sources */, 191 | 4BB316E91C44F53F00729460 /* Frameworks */, 192 | 4BB316EA1C44F53F00729460 /* Resources */, 193 | ); 194 | buildRules = ( 195 | ); 196 | dependencies = ( 197 | 4BB316EE1C44F53F00729460 /* PBXTargetDependency */, 198 | ); 199 | name = WZXLoLCardDemoUITests; 200 | productName = WZXLoLCardDemoUITests; 201 | productReference = 4BB316EC1C44F53F00729460 /* WZXLoLCardDemoUITests.xctest */; 202 | productType = "com.apple.product-type.bundle.ui-testing"; 203 | }; 204 | /* End PBXNativeTarget section */ 205 | 206 | /* Begin PBXProject section */ 207 | 4BB316C01C44F53F00729460 /* Project object */ = { 208 | isa = PBXProject; 209 | attributes = { 210 | LastUpgradeCheck = 0710; 211 | ORGANIZATIONNAME = wzx; 212 | TargetAttributes = { 213 | 4BB316C71C44F53F00729460 = { 214 | CreatedOnToolsVersion = 7.1.1; 215 | }; 216 | 4BB316E01C44F53F00729460 = { 217 | CreatedOnToolsVersion = 7.1.1; 218 | TestTargetID = 4BB316C71C44F53F00729460; 219 | }; 220 | 4BB316EB1C44F53F00729460 = { 221 | CreatedOnToolsVersion = 7.1.1; 222 | TestTargetID = 4BB316C71C44F53F00729460; 223 | }; 224 | }; 225 | }; 226 | buildConfigurationList = 4BB316C31C44F53F00729460 /* Build configuration list for PBXProject "WZXLoLCardDemo" */; 227 | compatibilityVersion = "Xcode 3.2"; 228 | developmentRegion = English; 229 | hasScannedForEncodings = 0; 230 | knownRegions = ( 231 | en, 232 | Base, 233 | ); 234 | mainGroup = 4BB316BF1C44F53F00729460; 235 | productRefGroup = 4BB316C91C44F53F00729460 /* Products */; 236 | projectDirPath = ""; 237 | projectRoot = ""; 238 | targets = ( 239 | 4BB316C71C44F53F00729460 /* WZXLoLCardDemo */, 240 | 4BB316E01C44F53F00729460 /* WZXLoLCardDemoTests */, 241 | 4BB316EB1C44F53F00729460 /* WZXLoLCardDemoUITests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 4BB316C61C44F53F00729460 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 4BB316DB1C44F53F00729460 /* LaunchScreen.storyboard in Resources */, 252 | 4BB316D81C44F53F00729460 /* Assets.xcassets in Resources */, 253 | 4BB316D61C44F53F00729460 /* Main.storyboard in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 4BB316DF1C44F53F00729460 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | 4BB316EA1C44F53F00729460 /* Resources */ = { 265 | isa = PBXResourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | /* End PBXResourcesBuildPhase section */ 272 | 273 | /* Begin PBXSourcesBuildPhase section */ 274 | 4BB316C41C44F53F00729460 /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 4BB316D31C44F53F00729460 /* ViewController.m in Sources */, 279 | 4BB317001C44F60400729460 /* WZXLOLCardLayout.m in Sources */, 280 | 4BB316D01C44F53F00729460 /* AppDelegate.m in Sources */, 281 | 4BB316CD1C44F53F00729460 /* main.m in Sources */, 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | }; 285 | 4BB316DD1C44F53F00729460 /* Sources */ = { 286 | isa = PBXSourcesBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | 4BB316E61C44F53F00729460 /* WZXLoLCardDemoTests.m in Sources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | 4BB316E81C44F53F00729460 /* Sources */ = { 294 | isa = PBXSourcesBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | 4BB316F11C44F53F00729460 /* WZXLoLCardDemoUITests.m in Sources */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | /* End PBXSourcesBuildPhase section */ 302 | 303 | /* Begin PBXTargetDependency section */ 304 | 4BB316E31C44F53F00729460 /* PBXTargetDependency */ = { 305 | isa = PBXTargetDependency; 306 | target = 4BB316C71C44F53F00729460 /* WZXLoLCardDemo */; 307 | targetProxy = 4BB316E21C44F53F00729460 /* PBXContainerItemProxy */; 308 | }; 309 | 4BB316EE1C44F53F00729460 /* PBXTargetDependency */ = { 310 | isa = PBXTargetDependency; 311 | target = 4BB316C71C44F53F00729460 /* WZXLoLCardDemo */; 312 | targetProxy = 4BB316ED1C44F53F00729460 /* PBXContainerItemProxy */; 313 | }; 314 | /* End PBXTargetDependency section */ 315 | 316 | /* Begin PBXVariantGroup section */ 317 | 4BB316D41C44F53F00729460 /* Main.storyboard */ = { 318 | isa = PBXVariantGroup; 319 | children = ( 320 | 4BB316D51C44F53F00729460 /* Base */, 321 | ); 322 | name = Main.storyboard; 323 | sourceTree = ""; 324 | }; 325 | 4BB316D91C44F53F00729460 /* LaunchScreen.storyboard */ = { 326 | isa = PBXVariantGroup; 327 | children = ( 328 | 4BB316DA1C44F53F00729460 /* Base */, 329 | ); 330 | name = LaunchScreen.storyboard; 331 | sourceTree = ""; 332 | }; 333 | /* End PBXVariantGroup section */ 334 | 335 | /* Begin XCBuildConfiguration section */ 336 | 4BB316F31C44F53F00729460 /* Debug */ = { 337 | isa = XCBuildConfiguration; 338 | buildSettings = { 339 | ALWAYS_SEARCH_USER_PATHS = NO; 340 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 341 | CLANG_CXX_LIBRARY = "libc++"; 342 | CLANG_ENABLE_MODULES = YES; 343 | CLANG_ENABLE_OBJC_ARC = YES; 344 | CLANG_WARN_BOOL_CONVERSION = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INT_CONVERSION = YES; 350 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 351 | CLANG_WARN_UNREACHABLE_CODE = YES; 352 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 353 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 354 | COPY_PHASE_STRIP = NO; 355 | DEBUG_INFORMATION_FORMAT = dwarf; 356 | ENABLE_STRICT_OBJC_MSGSEND = YES; 357 | ENABLE_TESTABILITY = YES; 358 | GCC_C_LANGUAGE_STANDARD = gnu99; 359 | GCC_DYNAMIC_NO_PIC = NO; 360 | GCC_NO_COMMON_BLOCKS = YES; 361 | GCC_OPTIMIZATION_LEVEL = 0; 362 | GCC_PREPROCESSOR_DEFINITIONS = ( 363 | "DEBUG=1", 364 | "$(inherited)", 365 | ); 366 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 367 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 368 | GCC_WARN_UNDECLARED_SELECTOR = YES; 369 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 370 | GCC_WARN_UNUSED_FUNCTION = YES; 371 | GCC_WARN_UNUSED_VARIABLE = YES; 372 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 373 | MTL_ENABLE_DEBUG_INFO = YES; 374 | ONLY_ACTIVE_ARCH = YES; 375 | SDKROOT = iphoneos; 376 | }; 377 | name = Debug; 378 | }; 379 | 4BB316F41C44F53F00729460 /* Release */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | ALWAYS_SEARCH_USER_PATHS = NO; 383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 384 | CLANG_CXX_LIBRARY = "libc++"; 385 | CLANG_ENABLE_MODULES = YES; 386 | CLANG_ENABLE_OBJC_ARC = YES; 387 | CLANG_WARN_BOOL_CONVERSION = YES; 388 | CLANG_WARN_CONSTANT_CONVERSION = YES; 389 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 390 | CLANG_WARN_EMPTY_BODY = YES; 391 | CLANG_WARN_ENUM_CONVERSION = YES; 392 | CLANG_WARN_INT_CONVERSION = YES; 393 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 394 | CLANG_WARN_UNREACHABLE_CODE = YES; 395 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 396 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 397 | COPY_PHASE_STRIP = NO; 398 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 399 | ENABLE_NS_ASSERTIONS = NO; 400 | ENABLE_STRICT_OBJC_MSGSEND = YES; 401 | GCC_C_LANGUAGE_STANDARD = gnu99; 402 | GCC_NO_COMMON_BLOCKS = YES; 403 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 404 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 405 | GCC_WARN_UNDECLARED_SELECTOR = YES; 406 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 407 | GCC_WARN_UNUSED_FUNCTION = YES; 408 | GCC_WARN_UNUSED_VARIABLE = YES; 409 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 410 | MTL_ENABLE_DEBUG_INFO = NO; 411 | SDKROOT = iphoneos; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 4BB316F61C44F53F00729460 /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | buildSettings = { 419 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 420 | INFOPLIST_FILE = WZXLoLCardDemo/Info.plist; 421 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 422 | PRODUCT_BUNDLE_IDENTIFIER = com.wordoor.WZXLoLCardDemo; 423 | PRODUCT_NAME = "$(TARGET_NAME)"; 424 | }; 425 | name = Debug; 426 | }; 427 | 4BB316F71C44F53F00729460 /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | buildSettings = { 430 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 431 | INFOPLIST_FILE = WZXLoLCardDemo/Info.plist; 432 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 433 | PRODUCT_BUNDLE_IDENTIFIER = com.wordoor.WZXLoLCardDemo; 434 | PRODUCT_NAME = "$(TARGET_NAME)"; 435 | }; 436 | name = Release; 437 | }; 438 | 4BB316F91C44F53F00729460 /* Debug */ = { 439 | isa = XCBuildConfiguration; 440 | buildSettings = { 441 | BUNDLE_LOADER = "$(TEST_HOST)"; 442 | INFOPLIST_FILE = WZXLoLCardDemoTests/Info.plist; 443 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 444 | PRODUCT_BUNDLE_IDENTIFIER = com.wordoor.WZXLoLCardDemoTests; 445 | PRODUCT_NAME = "$(TARGET_NAME)"; 446 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WZXLoLCardDemo.app/WZXLoLCardDemo"; 447 | }; 448 | name = Debug; 449 | }; 450 | 4BB316FA1C44F53F00729460 /* Release */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | BUNDLE_LOADER = "$(TEST_HOST)"; 454 | INFOPLIST_FILE = WZXLoLCardDemoTests/Info.plist; 455 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 456 | PRODUCT_BUNDLE_IDENTIFIER = com.wordoor.WZXLoLCardDemoTests; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WZXLoLCardDemo.app/WZXLoLCardDemo"; 459 | }; 460 | name = Release; 461 | }; 462 | 4BB316FC1C44F53F00729460 /* Debug */ = { 463 | isa = XCBuildConfiguration; 464 | buildSettings = { 465 | INFOPLIST_FILE = WZXLoLCardDemoUITests/Info.plist; 466 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 467 | PRODUCT_BUNDLE_IDENTIFIER = com.wordoor.WZXLoLCardDemoUITests; 468 | PRODUCT_NAME = "$(TARGET_NAME)"; 469 | TEST_TARGET_NAME = WZXLoLCardDemo; 470 | USES_XCTRUNNER = YES; 471 | }; 472 | name = Debug; 473 | }; 474 | 4BB316FD1C44F53F00729460 /* Release */ = { 475 | isa = XCBuildConfiguration; 476 | buildSettings = { 477 | INFOPLIST_FILE = WZXLoLCardDemoUITests/Info.plist; 478 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 479 | PRODUCT_BUNDLE_IDENTIFIER = com.wordoor.WZXLoLCardDemoUITests; 480 | PRODUCT_NAME = "$(TARGET_NAME)"; 481 | TEST_TARGET_NAME = WZXLoLCardDemo; 482 | USES_XCTRUNNER = YES; 483 | }; 484 | name = Release; 485 | }; 486 | /* End XCBuildConfiguration section */ 487 | 488 | /* Begin XCConfigurationList section */ 489 | 4BB316C31C44F53F00729460 /* Build configuration list for PBXProject "WZXLoLCardDemo" */ = { 490 | isa = XCConfigurationList; 491 | buildConfigurations = ( 492 | 4BB316F31C44F53F00729460 /* Debug */, 493 | 4BB316F41C44F53F00729460 /* Release */, 494 | ); 495 | defaultConfigurationIsVisible = 0; 496 | defaultConfigurationName = Release; 497 | }; 498 | 4BB316F51C44F53F00729460 /* Build configuration list for PBXNativeTarget "WZXLoLCardDemo" */ = { 499 | isa = XCConfigurationList; 500 | buildConfigurations = ( 501 | 4BB316F61C44F53F00729460 /* Debug */, 502 | 4BB316F71C44F53F00729460 /* Release */, 503 | ); 504 | defaultConfigurationIsVisible = 0; 505 | }; 506 | 4BB316F81C44F53F00729460 /* Build configuration list for PBXNativeTarget "WZXLoLCardDemoTests" */ = { 507 | isa = XCConfigurationList; 508 | buildConfigurations = ( 509 | 4BB316F91C44F53F00729460 /* Debug */, 510 | 4BB316FA1C44F53F00729460 /* Release */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | }; 514 | 4BB316FB1C44F53F00729460 /* Build configuration list for PBXNativeTarget "WZXLoLCardDemoUITests" */ = { 515 | isa = XCConfigurationList; 516 | buildConfigurations = ( 517 | 4BB316FC1C44F53F00729460 /* Debug */, 518 | 4BB316FD1C44F53F00729460 /* Release */, 519 | ); 520 | defaultConfigurationIsVisible = 0; 521 | }; 522 | /* End XCConfigurationList section */ 523 | }; 524 | rootObject = 4BB316C01C44F53F00729460 /* Project object */; 525 | } 526 | --------------------------------------------------------------------------------