-
-
Save fra3il/1996f805dc56d0d48a06 to your computer and use it in GitHub Desktop.
[WP/173] UIImagePickerController 의 Shutter 제거
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated { | |
// 기본 카메라를 구동할 때 나타나는 셔터 및 셔터 애니메이션을 제거한다. | |
for (UIView *view in [[viewController view] subviews]) { | |
if ([[[view class] description] isEqualToString:@"UIImageView"]) { // shutterImageView | |
[view removeFromSuperview]; | |
} | |
if ([[[view class] description] isEqualToString:@"PLCropOverlay"]) { | |
for (UIView *subview in [view subviews]) { | |
if ([[[subview class] description] isEqualToString:@"PLCameraIrisAnimationView"]) { // shutterAnimationView | |
[subview removeFromSuperview]; | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment