Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
iOS Programming Cookbook

You're reading from   iOS Programming Cookbook Over 50 exciting and powerful recipes to help you unearth the promise of iOS programming

Arrow left icon
Product type Paperback
Published in Mar 2017
Publisher Packt
ISBN-13 9781786460981
Length 520 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (16) Chapters Close

Preface 1. Swift Programming Language FREE CHAPTER 2. The Essentials 3. Integrating with Messages App 4. Working with Interface Builder 5. Working with UITableView 6. Animations and Graphics 7. Multimedia 8. Concurrency 9. Location Services 10. Security and Encryption 11. Networking 12. Persisting Data with Core Data 13. Notifications 14. App Search 15. Optimizing Performance

Working with gestures like swipe, pan, rotation, and tap


When users use your app, clicking is not only the possible way that user can interact with the app. iOS provides you with gesture recognizers such as the most commonly used gestures by users, such as swipe or tap gestures. Although it is very nice to support gestures in you app, misusing them may lead to a very bad user experience and cause conflicts to your users. Another problem is that most users don't know that you have to swipe in a specific area to get an action done, so it's recommended that you show a tutorial or notes on screen, telling users about what gestures you support so that they become aware of them.

Getting ready

In this recipe, we will show you a simple UIView that can interact with multiple gesture recognizers; but before getting started, let's explain briefly the difference between the various gesture recognizers:

  • UITapGestureRecognizer: This is a gesture recognizer that detects taps on UIViews with any number of...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image