How to hide the keyboard programmatically in iphone

后端 未结 6 2134
春和景丽
春和景丽 2021-01-11 13:43

How to hide the keyboard programmatically in iphone?

6条回答
  •  旧巷少年郎
    2021-01-11 14:05

    Here is the swift version:

    UIApplication.sharedApplication().sendAction("resignFirstResponder", to:nil, from:nil, forEvent:nil)
    

提交回复
热议问题