how can i set mTextView to show on button click
Posted
by Ajay Pandey
on Stack Overflow
See other posts from Stack Overflow
or by Ajay Pandey
Published on 2010-06-17T11:57:13Z
Indexed on
2010/06/17
12:03 UTC
Read the original article
Hit count: 240
iphone
i have a UITextView object which i have created in interface builder with it's hidden property unmarked.Now i want this textView to be invisible when my application launches and first view appears.Further i want it to be displayed when a particular method is called.Now this is what i have written in view did load
[mTextView setHidden:YES];
self.mTextView=[[UITextView alloc] init];
it hides the textView ats the first view appears but when my desired method is called and i write
[mTextView setHidden:NO]; it does not show it again.. Is it like we cant change the appearance of a textView once it is assigned because after assigning memory as
self.mTextView=[[UITextView alloc] init]; and then writing
[mTextView setHidden:YES];
it does not hide textView in viwDidLoad either.....
© Stack Overflow or respective owner