objective c - CATransition NOT working when kCATransitionFromTop -
objective c - CATransition NOT working when kCATransitionFromTop -
catransition
not working when subtype kcatransitionfromtop
.
calayer *layer = [self.view layer]; catransition *transition = [catransition animation]; transition.type = @"pagecurl"; transition.duration = 0.5; transition.delegate = self; if(viewmode == portrait) [transition setsubtype:kcatransitionfromright]; else if(viewmode == upsidedown) [transition setsubtype:kcatransitionfromleft]; else if(viewmode == right) [transition setsubtype:kcatransitionfrombottom]; else if(viewmode == left) [transition setsubtype:kcatransitionfromtop]; [layer addanimation:transition forkey:nil];
everything works fine except kcatransitionfromtop
. (comes bottom)
i think subtype of @"pagecurl"
can't fromtop
, default value (frombottom
)
is assigned. right? , there anyway prepare this?
objective-c ios
Comments
Post a Comment