Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
540 views
in Technique[技术] by (71.8m points)

cocoa touch - iPhone SDK 4 "Half curl page transition"

In Steve Jobs' keynote announcement of the iPhone SDK 4 earlier this year, one of the slides showed that a "Half curl page transition" was part of the new SDK.

I've looked through the iOS API docs and I can't seem to find this transition. Does anyone know where it is?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It's not a transition, but a modalTransitionStyle. You can check the docs here: https://developer.apple.com/documentation/uikit/uiviewcontroller/1621388-modaltransitionstyle

If you create a new UIViewController, set its modalTransitionStyle to UIModalTransitionStylePartialCurl, and then presentModalViewController:animated: it, you'll get the desired "half curl page" effect.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...