iOS partial curl transition question?
When using the transition sty开发者_开发技巧le UIModalTransitionStyleParitalCurl in iOS, how do you change how much is "curled" in the transition?
WrightsCS is (I believe) incorrect.
I've been playing with this recently, and I believe I've discovered how to (indirectly) affect the amount of page curl.
It APPEARS to me that the left-most portion of the curl is set to the height of the highest control on the view. There appears to be a limit to how high it will go, though. It appears to stop when the right edge of the curl meets the top of the page, regardless of control location.
If the highest control has a Y value of 512 (halfway down a portrait view), the left edge appears halfway down.
YMMV, but my testing appears to confirm this.
As WrightsCS said, though, there's no property to set that directly controls this value.
You cannot change the amount of curl. There is a modal animation which will curl the entire page up, and then there is the partial curl, which does not have any properties that will allow you to define how much of it to curl.
精彩评论