IOS development and learning-gesture effect source code sharing

Source: Internet
Author: User

All around pull View


Introduction: You can drag Update (pull to refresh) in the four directions of the view ).
Compiling and testing environment: xcode 4.3, IOS 5.0.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 172 & fromuid = 16

Droppable View


Introduction: drag and drop to delete a view. Drag and Drop a view in the circular area of the interface to delete the view, which can be used as the bin deletion function.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 173 & fromuid = 16

Drag Control


Introduction: implement the drag control function.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 174 & fromuid = 16

Shake an animation and add sound effects


Introduction:Shake the animation effect and sound effect to identify the device shaking.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 177 & fromuid = 16

Shake motion recognizer


Introduction:Recognize the movements of the device, similar to shaking.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 180 & fromuid = 16

Finger slide Effect
Introduction:This sectionCodeThis is similar to the effect of scratches on the screen when the user's fingers are scratched on the screen. If you are interested, you can study it.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 183 & fromuid = 16

Use pinch gestures to tear down images
Introduction:Now we use the pinch gesture to tear down the image effect. Zoom in with the pinch gesture to see the effect, that is, drag the image from the left and right sides with two fingers, and the image will be split into two halves. The split is jagged and can be changed to any shape, which means it will be troublesome to calculate coordinates.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 185 & fromuid = 16

One finger Rotation
Introduction:This is an example of a custom gesture recognition code that supports one finger rotation gesture recognizer ). The implementation principle is to track the movement of fingers with a single point as the center.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 186 & fromuid = 16

When tapped View
Introduction:It is very convenient to add a click action response event to any uiview (or any object that inherits uiview. Including touch up, touch down, touch down, double taps, and two-finger taps) action.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 187 & fromuid = 16

Gravity View
Introduction:An example of how to test gravity sensing on iOS devices. There is a square on the interface. As the device location changes, the square on the interface will be moved. The accelerometer is used to determine the device location, so that the square on the interface is either raised, dropped, or moved left and right. The movement speed of the square can also be customized. The code example must be tested on a real machine.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 188 & fromuid = 16

Touchpos é
Introduction:Add the path of the user touch screen (translucent circle) to the interface ). When a user's fingers touch or click on the screen (trigger any Click Event), touchpose adds a translucent circle to the place where the finger is clicked, which indicates the user's click track. This effect is generally visible during video demo recording. Now, when you do not need to record a demo, you can add touchpose to show the effect of the application to others to produce a better demo effect.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 189 & fromuid = 16

Drag and Drop recyclebin
Introduction:Implement the file recycle bin effect. You can drag and drop an image on the recycle bin icon to delete the image and smash the file.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 190 & fromuid = 16

User resizable View
Introduction:You can manually adjust the size and position of a uiview, similar to an imageview. Can be used for all uiviews.
Http://ios.itmdc.com/forum.php? MoD = viewthread & tid = 191 & fromuid = 16

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.