iPhoneOS3.1でのカメラAPIについて

1,588 views

Published on

Published in: Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,588
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

iPhoneOS3.1でのカメラAPIについて

  1. 1. iPhoneOS3.1 API Kyosuke Takayama
  2. 2. OS2.x
  3. 3. ■ UIView *plView = [[[[[[self.view subviews] objectAtIndex:0] subviews] lastObject] subviews] lastObject]; [[[plView subviews] objectAtIndex:3] removeFromSuperview]; [[[plView subviews] objectAtIndex:2] removeFromSuperview]; ■ id plc = objc_getClass("PLCameraController"); NSObject * cameraController = objc_msgSend(plc, @selector(sharedInstance)); object_setInstanceVariable(cameraController, "_delegate", self); [cameraController capturePhoto:YES];
  4. 4. iPhoneOS3.1 released!!
  5. 5. API • Instance Method takePicture • Properties cameraViewTransform cameraOverlayView showsCameraControls
  6. 6. [cameraCotroller takePicture]
  7. 7. cameraCotroller.cameraViewTransform transform
  8. 8. cameraCotroller.cameraOverlayView View
  9. 9. cameraCotroller.showsCameraControls
  10. 10. http://github.com/ ktakayama/iPhone-CameraSample
  11. 11. cameraOverlayView ○ …
  12. 12. ( Д ) …
  13. 13. cameraOverlayView view
  14. 14. view
  15. 15. cameraOverlayView view
  16. 16. cameraOverlayView view - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UIView *v = self.superview.superview; [[[v subviews] objectAtIndex:0] touchesBegan:touches withEvent:event]; }
  17. 17. …… - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UIView *v = self.superview.superview; [[[v subviews] objectAtIndex:0] touchesBegan:touches withEvent:event]; }
  18. 18. http://github.com/ ktakayama/iPhone-CameraSample
  19. 19. view UINavigationTransitionView UIViewControllerWrapperView UIView PLCameraView PLPreviewView PLCameraFocusView UIImageView PLCropOverlay overlayView PLCropOverlayBottomBar

×