开发者

show UIButtons one by one in a UIView

开发者 https://www.devze.com 2023-01-05 10:25 出处:网络
Hi I have a UIView which contains several buttons that are designed by others in Interface Builder. Now I need to show the butto开发者_如何学Cns one by one with a 0.2 second delay, when the View is lo

Hi I have a UIView which contains several buttons that are designed by others in Interface Builder. Now I need to show the butto开发者_如何学Cns one by one with a 0.2 second delay, when the View is loaded.

Can someone give me some clue how I could implement this? e.g. in which method call what kind of animation.


Do some research on NSTimers.

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


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

精彩评论

暂无评论...
验证码 换一张
取 消