Changes

Jump to: navigation, search

An iOS 9 3D Touch Force Handling Tutorial

16 bytes removed, 20:34, 1 February 2016
m
Text replacement - "<google>BUY_IOS9</google>" to "<htmlet>ios9</htmlet>"
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
With the UIView object still selected, display the Attributes Inspector panel and change the background color to green.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Locating the drawRect Method in the UIView Subclass ==
The code added identifies the height and width of the visible area of the display and then uses Core Graphics to draw a filled red rectangle starting at the bottom of the display at a height defined by the size variable. The next step is to implement the touch event methods to set the size value based on the force of the touch.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Implementing the Touch Methods ==
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>

Navigation menu