I because of the function of a page in the project need to use the Mdcswipetochooseview, on-line access to relevant information, resources are many, but should be the same person uploaded, Code4 and git have, but download the demo down after the run, Many of my same iOS novice may be confused, because there is no way to solve, then share my solution.
Mdcswipetochooseview can simply add a swipe gesture to invoke UIView and use that behavior to provide a component to create a swipe like or dislike interface similar to the Tinder app. Based on the direction of the swipe, you can decide what behavior to perform, and you can customize the text color and picture. The project is intended for use in flashcards, picture viewers and others. Online demo can be directly Baidu Mdcswipetochooseview, can also click Https://github.com/modocache/MDCSwipeToChoose.git, this demo online or there are a lot of resources. Download down can not run the reason is also very simple, should be the author when writing the project with Cocoapods to manage the third-party library, so there is no way to run directly. There are two ways to solve this problem.
First, download cocoapods to manage your third party and then load the. xcworkspace file in the demo, and you can refer to how cocospods is used.
Second, drag several files from the demo into a new project, and then drag the third-party library mdcswipetochoose into the project, noting that the header file
#import <MDCSwipeToChoose/MDCSwipeToChoose.h> All Change to
#import "ChoosePersonView.h" and then you can run it.
is not very simple ~ for Daniel may not be useless, but I hope to help the same as I novice classmates ~
About the application of Mdcswipetochooseview