PDA

View Full Version : Hide UIImageView




Patr1k
Jul 3, 2009, 08:27 AM
Hi all,

please, I have one question... I need to create some thing like this: in the start of application I need to show to user some image and I need to hide it after some delay or when user click, it doesn't matter.

And I have one question: What is the best way to do it?
Create new class? Or only implement some method in the class what will be view after image?



jnic
Jul 3, 2009, 08:54 AM
yourImageView.hidden = YES;

http://tuvix.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/Reference/NSTimer.html

johnmcglone
Jul 3, 2009, 11:06 AM
That or .alpha = 0;

Patr1k
Jul 4, 2009, 05:36 AM
Hi, thank you...

But there is one problem. How can I add it to view, if I have some method like this: [window addSubview:rootController.view]; , it is for tab bar...

So what method I must call to show (or how) it in view? Thank you...

EDIT: I am sorry, I have done it :-)