2011-05-12 32 views

回答

0

假設你需要在從viewDidLoad加載後隱藏,在你的viewDidLoad中聲明如下:

[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(hideYourImage) userInfo:nil repeats:NO]; 

-(void)hideYourImage 
{ 
    [yourImageView setHidden:TRUE]; 
} 

給你。希望能幫助到你。

+0

thanx爲你的公司。 – sandy 2011-05-12 09:42:33

0

如果使用UIView動畫進行翻轉動畫,則可以指定動畫完成的代碼。

[UIView animateWithDuration:0.2 

animations:^{// Put your flip animation} 

completion:^(BOOL finished){ [imageView removeFromSuperview]; }]; 

否則,定時器方法也會這樣。