Skip to content

Instantly share code, notes, and snippets.

@fra3il

fra3il/0.m Secret

Last active February 2, 2016 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fra3il/1996f805dc56d0d48a06 to your computer and use it in GitHub Desktop.
Save fra3il/1996f805dc56d0d48a06 to your computer and use it in GitHub Desktop.
[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