【问题标题】:How to overlay on top of the Keyboard in xcode如何在xcode中覆盖键盘顶部
【发布时间】:2011-04-12 19:32:50
【问题描述】:

你如何覆盖一些东西,即编辑 UITextFIeld 时弹出的键盘上的 UIImageView?

【问题讨论】:

    标签: iphone xcode keyboard uiimageview overlay


    【解决方案1】:

    你可以使用下面的代码来捕捉键盘窗口,如果你把它放到 textFieldDidBeginEditing 方法中:

    UIWindow* keyboard = [[[UIApplication sharedApplication] windows] objectAtIndex:1];
    

    【讨论】:

    • 据我所知,至少我没有问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-31
    相关资源
    最近更新 更多