检测UISearchBar专注于文本字段 [英] Detect UISearchBar focus on the text field

查看:50
本文介绍了检测UISearchBar专注于文本字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以检测用户是否单击了搜索栏文本字段并出现了键盘?

Is there a way to detect if a user has click on the searchbar textfield and the keyboard has appear ?

推荐答案

来自

  • searchBarTextDidBeginEditing:
  • searchBarCancelButtonClicked:
    • searchBarTextDidBeginEditing:
    • searchBarCancelButtonClicked:

    这篇关于检测UISearchBar专注于文本字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆