廣告贊助

 xcode6-swift-ios8-300x300-e1474448840137.png

筆記一下Xcode 裡面 Sent Event,中文說明可能不夠清楚 多多包涵

螢幕快照 2018-05-17 下午2.41.36.png

Did End on Exit
使用者點擊 Return 或者 Done ,按鈕就會觸發此事件;

A touch ending an editing session in a UITextField object.


Editing Changed
字新增刪除或是改變,都會觸發此事件;

A touch making an editing change in a UITextField object.


Editing Did Begin
當 Field 得到焦點;

A touch initiating an editing session in a UITextField object by entering its bounds.
 

Editing Did End
焦點離開 field;

A touch ending an editing session in a UITextField object by leaving its bounds.

Touch Cancel
一個系统事件,取消當前區域的點擊操作,一般不會觸發;

A system event canceling the current touches for the control.

Touch Down
按下按钮的一瞬間觸發;

A touch-down event in the control.

Touch Down Repeat
區域内重覆的 touch-down 事件,例如雙擊。或是同時 touch-down 也會觸發兩次;

A repeated touch-down event in the control; for this event the value of the UITouch tapCount method is greater than one.

Touch Drag Enter

An event where a finger is dragged into the bounds of the control.
Touch Drag Exit 

An event where a finger is dragged from within a control to outside its bounds.
Touch Drag Inside

An event where a finger is dragged inside the bounds of the control.
Touch Drag Outside

An event where a finger is dragged just outside the bounds of the control.
這四個可以當作一組,假如你用手按下一個按鈕,那在這一瞬間,會觸發 touch-down 事件,然後如果你繼續拖動,就是 touch-drag

如果你一直在按鈕範圍内拖動,那就是一直重复觸發 inside,拖出按钮範圍的那一瞬間,會觸發 exit,在按钮外邊持續拖動,就是 outside 重覆觸發了,拖回来的那一瞬间,就是 enter ;

Touch Up Inside
在按鈕範圍内按下並放開;

A touch-up event in the control where the finger is inside the bounds of the control.

Touch Up Outside
在按钮範圍内按下但在按鈕範圍外放開;

A touch-up event in the control where the finger is outside the bounds of the control.

Value Changed
當控制件,例如 UISwitch UISlider 等值改變時,就會觸發。

A touch dragging or otherwise manipulating a control, causing it to emit a series of different values.


 

文章標籤
創作者介紹
創作者 瑞、瑪姬與小昆妮 的頭像
瑞、瑪姬與小昆妮

瑞瑪姬與小昆妮♫趴趴走黑白吃

瑞、瑪姬與小昆妮 發表在 痞客邦 留言(0) 人氣()