Making views disappear and reappear
Making views disappear and reappear
- Subject: Making views disappear and reappear
- From: Mark T <email@hidden>
- Date: Sat, 23 Jun 2001 15:58:17 -0400
I'm still relatively new to cocoa programming so please excuse me if
this question has an simple or obvious answer.
I'm trying to make a TableView disappear and reappear in response to
a user clicking a button. I was going to use removeFromSuperview, but
it says to not invoke it during display. So I tried using
[[self myTable] retain];
[[self myTable] removeFromSuperviewWithoutNeedingDisplay];
This caused no visual change(the table still looked like it was
there), but you could no longer click on the table or interact with
it in any way. Trying to reverse this situation with addSubview had
no effect.
Any tips or code snippets would be much appreciated.
Thanks,
Mark