iOS camera engine with Vine-like tap to record, animatable filters, slow motion, segments editing
Apache License 2.0
3.06k
stars
583
forks
source link
Appliaction hang as filterSwitcherView is transformed in willRotateToInterfaceOrientation method and set frame of filterSwitcherView in orientationchaned method #323
After video is recorded, it play in SCVideoPlayerViewController.
I want video in same orientation for each interface orientation, as it was captured. For that i am transforming filterSwitcherView in willRotateToInterfaceOrientation and setting frame in orientationChanged method.
But as i rotate device, filterSwitcherView is transformed and filterSwitcherView frame is set in orientationChanged method. but after that UI is getting stuck.
This is working fine in iphone 5 for portrait mode only but not in other device.
Code Implemented in willRotateToInterfaceOrientation.
@rFlex
After video is recorded, it play in SCVideoPlayerViewController. I want video in same orientation for each interface orientation, as it was captured. For that i am transforming filterSwitcherView in willRotateToInterfaceOrientation and setting frame in orientationChanged method. But as i rotate device, filterSwitcherView is transformed and filterSwitcherView frame is set in orientationChanged method. but after that UI is getting stuck. This is working fine in iphone 5 for portrait mode only but not in other device.
`- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { switch (toInterfaceOrientation) { case UIInterfaceOrientationLandscapeLeft: { _filterSwitcherView.transform = CGAffineTransformMakeRotation(M_PI_2); // 90 degress } break;
}`
`- (void)orientationChanged:(NSNotification *)notification { // NSLog(@"Orientation changed!");
}`