How can I make a UIKeyCommand with the return/enter key?

后端 未结 1 653
借酒劲吻你
借酒劲吻你 2021-01-07 22:08

I\'d like to make a UIKeyCommand that uses only the [return] key. So far I\'ve tried:

UIKeyCommand *selectCommand = [UIKeyCommand k         


        
1条回答
  •  悲&欢浪女
    2021-01-07 22:22

    Using @"\r" for carriage return instead of @"\n" for newline should work.

    0 讨论(0)
提交回复
热议问题