Skip to main content

Handling User Touches

  • Chapter
Learn Cocoa Touch for iOS
  • 953 Accesses

Abstract

The iPhone was a drastic change from every computing platform that came before it in many ways, but none more so than its lack of a mouse or keyboard. Instead of responding to keyboard key presses, mouse clicks, and mouseover events, the iPhone responds to touch. Designing a user interface around touch is more than converting from clicks to taps. The iPhone offers direct manipulation: when you place your finger on a message in Mail and move it down an inch, the contents of the message move down an inch as well. Direct manipulation effectively removes a layer of abstraction between the user and the content dating back to the very first graphical user interfaces (GUIs): the scroll bar. As a result, iOS and other touchscreen operating systems are easier to use and more intuitive than their desktop predecessors. This chapter will show you how you can use touch in your apps, transforming a stale user experience into a rich, immersive app that users will love. We#x2019;ll talk about various ways you can make your application respond to user touches, including custom views and gesture recognizers, as well as update our MyStuff example app with some new user interface elements.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Jeff Kelley

About this chapter

Cite this chapter

Kelley, J. (2012). Handling User Touches. In: Learn Cocoa Touch for iOS. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4270-3_5

Download citation

Publish with us

Policies and ethics