UITextView editable on iOS5 but not iOS6

前端 未结 2 944
长发绾君心
长发绾君心 2021-01-06 03:31

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 ed

相关标签:
2条回答
  • 2021-01-06 04:11

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

    In the end the fix was this which wasnt present.

    [window makeKeyAndVisible];

    as in...

    - (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];
    
    }
    
    0 讨论(0)
  • 2021-01-06 04:18

    In my case this happened because the UIAltertView was called twice.

    You might not think you never typed any keys, but the BackSpace key does qualify.

    Then I removed the second UIAlertView and the TextField worked.

    I think you need to check the UIAlertView code.

    0 讨论(0)
提交回复
热议问题