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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - cuda, pycuda -- how to write complex numbers -- errors:class "cuComplex" has no member "i" -

How do I check if an insert was successful with MySQLdb in Python? -