Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Monitoring events and actions > An introduction to actions

6.4. An introduction to actions

If you won’t usually be programming directly with events, how will you access user input? The answer is by using actions. You’ll typically depend on preexisting text views, buttons, and other widgets to run your programs. When using these objects, you don’t have to worry about raw events. Instead, you can build programs around control events and actions that are generated by UIControls. Let’s look at the UIControl object first; then, we’ll examine the relationship between control events and actions, and how to hook them up.

6.4.1. The UIControl object

When you were working with events, you found that the UIResponder class held many of the methods critical for event control. Similarly, you can access a lot of the methods important to SDK controls through the UIControl class.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint