美文网首页
Drag and Drop

Drag and Drop

作者: 天地逍遥 | 来源:发表于2018-04-22 00:40 被阅读18次

Drag and Drop

初步了解新特性

第一 目标

1 图形化的方式移动或者复制数据

2 能够及时响应用户的操作 异步数据传输

3 安全 数据只有被传输的目标才可以看到 限制资源的访问

4 支持多闲触控,提高了体验

第二 术语

举起(Lift) -> (拖动)Drap -> (放下) Drop (Set Down) -> (数据传输)Data transfer

第三 线路图

Drag Interaction Preview Drop Interaction

  | | |

Drag Interaction Delegate-------Drag Session-----Drag Item------Drop Session--------Drop Interaction Delegate

|

Item Provider

第四 时间线

Time ---------------------------------------------------------------------------------------->

Touch Begins --> Stays Down ---> Moves ----> Ends

(Get items (Get a drop        (Perform

to drag) proposal) drop)

Drag and Drop Lift                Drag.              Perform    Drop Animations

    Data Transfer

    Cancel Animations

第五 Drag and Drop 的代理方法的使用

第六 支持的系统控件 UICollection UITableView UITextView UITextField WKWebView

WWDC 2017 203

相关文章

网友评论

      本文标题:Drag and Drop

      本文链接:https://www.haomeiwen.com/subject/jdpldxtx.html