Changes

Jump to: navigation, search

An iOS 4 iPad Core Animation Tutorial (Xcode 4)

28 bytes added, 19:56, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_IPADios9_upgrade</googlehtmlet>
}
</pre>
<googlehtmlet>BUY_IPAD_BOTTOMios9_upgrade</googlehtmlet>
Before compiling and running the application we need to take some time to describe the actions performed in the above method. First, the method gets the UITouch object from the touches argument and the locationInView method of this object is called to identify the location on the screen where the touch took place:
When the application loads the orange square should appear near the top left hand corner of the screen. Click (or touch if running on a device) the screen and watch the box glide and rotate to the new location, the size of the box changing as it moves:
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
[[Image:ipad_core_animation_example.jpg|An iPad iOS 4 core animation example app running]]
<googlehtmlet>BUY_IPAD_BOTTOMios9_upgrade</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">

Navigation menu