Changes

Jump to: navigation, search
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_IOS4XC4ios9_upgrade</googlehtmlet>
Select the ''touchMotionViewController.xib'' file to load the NIB file into Interface Builder. Within Interface Builder panel, create a user interface such that it resembles the layout in the following figure:
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
[[Image:iphone_touch_motion_layout.jpg|The layout of the iOS 4 iPhone touch motion example]]
Simply by implementing the standard touch event methods the motion of a gesture can easily be tracked by an iPhone application. Much of an iPhone user’s interaction with applications, however, involves some very specific gesture types such as swipes and pinches. To write code to correlate finger movement on the screen with a specific gesture type would be extremely complex. Fortunately, iOS 4 makes this task easy with the introduction of gesture recognizers. In the next chapter, entitled [[Identifying iPhone Gestures using iOS 4 Gesture Recognizers (Xcode 4)|Identifying iPhone Gestures using iOS 4 Gesture Recognizers]], we will look at this concept in more detail.
<googlehtmlet>BUY_IOS4XC4_BOTTOMios9_upgrade</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">

Navigation menu