Detect delete key using UIKeyCommand

前端 未结 3 2051
广开言路
广开言路 2021-02-07 14:15

Anyone know how to detect the \"delete\" key using UIKeyCommand on iOS 7?

3条回答
  •  别跟我提以往
    2021-02-07 15:13

    You can always try UIKeyInput. https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIKeyInput_Protocol/index.html#//apple_ref/occ/intfm/UIKeyInput/deleteBackward

    The function should be

    - (void)deleteBackward

提交回复
热议问题