andreamazz / BubbleTransition

A custom modal transition that presents and dismiss a controller with an expanding bubble effect.
MIT License
3.32k stars 250 forks source link

Orientations #9

Closed JDandini closed 9 years ago

JDandini commented 9 years ago

Problem

I use your beautiful control but when you make a presentation to a view controller with autorotate the rotation misses

- (NSUInteger)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskLandscape;
}

-(BOOL)shouldAutorotate {
    return YES;
}

Can you give me a idea to get this done please?

andreamazz commented 9 years ago

Sure, the animation was a little wonky since the position was not reset properly upon rotation. I fixed it and added rotation to the demo app in this repo. Let me know if that works for you.