Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chrono1081

macrumors G3
Original poster
Jan 26, 2008
8,455
4,156
Isla Nublar
Hi guys,

I hope this is something obvious and easy because its driving me nuts.

All I need to do is disable a UITextview programatically.

I thought something like this would work:

Code:
self.myText.enabled = NO;
NSLog(@"Value: %i", self.myText.isEnabled);

But it doesn't! The value still returns as YES instead of NO despite being set just one line above!

Anyone know why? The documentation suggests that the code is correct.

EDIT: I just scrapped the program and remade it and it worked. *shrugs*. Same exact code!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.