首页 > 分享 > UIEvent.EventType

UIEvent.EventType

UIKit UIEvent UIEvent.EventType

Constants that specify the general type of an event.

iOSiPadOSMac CatalysttvOSvisionOS

Overview

You can obtain the type of an event from the type property. To further identify the event, you might also need to determine its subtype, which you obtain from the subtype property.

Topics

Constants

case motion

The event relates to motion of the device, such as when a person shakes it.

case presses

The event relates to the press of a physical button.

case scroll

The event relates to scrolling from an indirect input device.

case hover

The event relates to a pointer from an indirect input device moving over a user interface element.

case transform

The event relates to a pointer from an indirect input device performing a transformation on a user interface element, such as scaling, rotation, or translation.

Current page is UIEvent.EventType

网址: UIEvent.EventType https://m.huajiangbk.com/newsview1213686.html

所属分类:花卉
上一篇: 2023 Apple...
下一篇: Apple发布会前库克在微博热情