Skip to content

Instantly share code, notes, and snippets.

@taberh
Created April 15, 2012 03:04
Show Gist options
  • Save taberh/2389644 to your computer and use it in GitHub Desktop.
Save taberh/2389644 to your computer and use it in GitHub Desktop.
iphone uiimagepickercontroller subviews structure
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UIView * previewView = [[[[[[[[[[self.picker.view // UILayoutContainerView
subviews] objectAtIndex:0] // UINavigationTransitionView
subviews] objectAtIndex:0] // UIViewControllerWrapperView
subviews] objectAtIndex:0] // UIView
subviews] objectAtIndex:0] // PLCameraView
subviews] objectAtIndex:0]; // PLPreviewView
[previewView touchesBegan:touches withEvent:event];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment