Warren Burton
Warren Burton

Reputation: 17382

UITextView editable on iOS5 but not iOS6

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.

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

Symptoms are...

iOS6

iOS5

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

Upvotes: 4

Views: 840

Answers (2)

seyeon
seyeon

Reputation: 11

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.

Upvotes: 1

Warren Burton
Warren Burton

Reputation: 17382

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];

}

Upvotes: 4

Related Questions