Skip to content

Instantly share code, notes, and snippets.

@fra3il

fra3il/0.m Secret

Last active Feb 2, 2016
Embed
What would you like to do?
[WP/173] UIImagePickerController 의 Shutter 제거
- (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
You can’t perform that action at this time.