Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Tom Coomer
1,331 PointsDrop pin on map
How do I allow the user do drop a pin on a map where they long press. Does it require a long press gesture recogniser? I am using Swift.
Thanks
Tom Coomer
1,331 PointsGreat, Thanks
Arman Kussainov
4,754 PointsArman Kussainov
4,754 PointsHi, Tom. Did you check this tutorial: http://www.raywenderlich.com/76020/using-uigesturerecognizer-with-swift-tutorial
Also here is solution for you, but in Objective-C. http://stackoverflow.com/questions/3959994/how-to-add-a-push-pin-to-a-mkmapviewios-when-touching/3960754#3960754