简体   繁体   中英

show a new view after x seconds?

I'm quite new to Objective-C and I have this problem. I'm animating an image an show this in a imageview. after 15 seconds i want to show another view, thought of a "flying in view from the bottom".

Any hints for me how i could manage that?

Have a look at NSTimer , it lets you call a delegate after a certain time. Views can be animated to come in from the bottom as well by using UIViewAnimationTransitionCurlUp. Check out the UIView doc for more information and examples.

另一个简单的方法是调用performSelector:withObject:afterDelay:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM