2010-06-30 73 views
0

您好我有一個UIView,其中包含由Interface Builder中的其他人設計的幾個按鈕。現在我需要在視圖加載時以0.2秒的延遲逐個顯示按鈕。在UIView中顯示UIButtons

有人可以給我一些線索我怎麼能實現這個?例如在哪個方法中調用什麼樣的動畫。

回答

0

對NSTimers做一些研究。

[NSTimer scheduledTimerWithTimeInterval:0.2f 
      target:self 
     selector:@selector(showSecondButton:) 
     userInfo:nil 
     repeats:NO]; 


-(void)showSecondButton:(id)sender{ 
    [button2 setHidden:NO]; 
} 
+0

謝謝!解決了我的問題。 – boreas 2010-07-01 07:53:32