Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iPhone OS 3.2(iPad)模式视图问题_Ipad_Iphone Sdk 3.2 - Fatal编程技术网

iPhone OS 3.2(iPad)模式视图问题

iPhone OS 3.2(iPad)模式视图问题,ipad,iphone-sdk-3.2,Ipad,Iphone Sdk 3.2,我将UIViewController作为modalPresentationStyle=UIModalPresentationFormSheet的模态viewcontroller呈现。我在它的视图中没有几个UITextFields 我的问题是,当我试图关闭键盘([textfieldname resignFirstResponder])时,它什么也没做。但是,当我将modalPresentationStyle更改为UIModalPresentationPageSheet时,它可以工作 这似乎是一个错

我将UIViewController作为modalPresentationStyle=UIModalPresentationFormSheet的模态viewcontroller呈现。我在它的视图中没有几个UITextFields

我的问题是,当我试图关闭键盘([textfieldname resignFirstResponder])时,它什么也没做。但是,当我将modalPresentationStyle更改为UIModalPresentationPageSheet时,它可以工作


这似乎是一个错误。有没有人遇到过类似的问题并找到了解决办法?我会做一些愚蠢的事情吗?

我在UITextView中遇到了同样的问题,我最终将UITextView子类化并覆盖辞职FirstResponder,如下所示

- (BOOL)resignFirstResponder{
    [super resignFirstResponder];
    // For some reason, UITextView doesn't like to give up first responder, ever....
    return YES;
}

我没有检查这在4.3中是否仍然是必要的,但在某些情况下3.2中确实需要它。

我也有同样的问题。我还没有找到一份好工作。