UITextView可在iOS5上编辑,但不能在iOS6上编辑 [英] UITextView editable on iOS5 but not iOS6

查看:122
本文介绍了UITextView可在iOS5上编辑,但不能在iOS6上编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一些UITextViews。由于我已经开始从XCode 4.5构建,UITextView在iOS6中是不可编辑的,但是在iOS5设备上构建它们是完全可编辑的。

I have a few UITextViews in my App. Since I have started building from XCode 4.5 the UITextView is sort of not editable in iOS6 but built on an iOS5 device they are fully editable.

代码没有改变,我开始使用iOS6。自iOS4以来,XIB一直存在

The code hasnt changed sinced I started using iOS6. The XIB has been around since iOS4

症状是......

iOS6


  • 可以通过点击和删除字符来提升键盘,但不能输入任何其他内容

  • 键盘隐藏键可以降低键盘。

iOS5


  • 可以通过点按和提升键盘完全编辑。

  • 键盘隐藏键可以降低键盘。

我很神秘。 textViewDidBeginEditing:被点击,所以我知道它已正确接线。

Im mystified. The textViewDidBeginEditing: gets hit so I know its wired up correctly.

推荐答案

测试项目方法无法正常工作,因为我无法重现这个问题。

The test project approach didnt work as I couldnt reproduce the issue.

最后修复是不存在的。

[window makeKeyAndVisible];

,如...

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

self.viewController = [[[MyViewController alloc] initWithNibName:nil bundle:nil] autorelease];

self.navigationController = [[[UINavigationController alloc] initWithRootViewController:self.viewController] autorelease];

[window setRootViewController:navigationController];

[window makeKeyAndVisible];

}

这篇关于UITextView可在iOS5上编辑,但不能在iOS6上编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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