关于GestureRecognizer/Basic gestures的定义

本文介绍了iPhone中UIGestureRecognizer的基本手势操作方法,包括点击、双击、拖动、轻拂和捏合等常见触屏手势及其应用场景。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

UIGestureRecognizer:

Basic gestures:

Tap:

To start an application, simply tap the touchscreen with your finger on the relevant application icon; for example the Safari icon on the Home screen.

Double-Tap:

A quick double-tap of your finger has a special effect in different types of applications. For example in Safari, performing a double-tab (a single tap works too) over a username/password field on a particular web page will zoom-in on that portion of the page plus display the on-screen keyboard to assist you in filling in the form fields. A double-tap on a video or YouTube video enlarges the video while a second double-tap will restore or zoom-out the video to its original view.

Drag:

While reading an email or viewing the content of a webpage, you can slowly drag your finger across the screen either horizontally or vertically to scroll the text on-screen in your chosen direction.

Flick:

A flick is similar to a drag except you move your finger faster and lift your finger off the screen right after. The end result will be a scroll in the chosen direction only a lot faster.

Delete:

Here is a quick an easy way to delete items such as a video, song or email, use a flick (see above) except in a horizontal direction over the particular name of the item. This will reveal a red Delete button enabling you to remove the selected item. If you tap on the Delete button you will be given an opportunity to confirm. If you change your mind, either tap the cancel button (when asked to confirm), or tap anywhere other than on the red Delete button to cancel.

Pinch:

You use a pinch action to zoom in and out of a particular area of the screen. To perform a Pinch, place two fingers on the screen and spread them apart (to zoom in) or squeeze your fingers togeather (to zoom out). You may find that this is similar to a double-tap only the difference is that a Pinch gives you greater control. A video showing the Pinch gesture can be viewed in the video section at www.iphonegestures.com

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值