About the application of Mdcswipetochooseview

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.