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

  • 1,292 views
Uploaded on

 

More in: Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,292
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
12
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. iPhoneOS3.1 API Kyosuke Takayama
  • 2. OS2.x
  • 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. iPhoneOS3.1 released!!
  • 5. API • Instance Method takePicture • Properties cameraViewTransform cameraOverlayView showsCameraControls
  • 6. [cameraCotroller takePicture]
  • 7. cameraCotroller.cameraViewTransform transform
  • 8. cameraCotroller.cameraOverlayView View
  • 9. cameraCotroller.showsCameraControls
  • 10. http://github.com/ ktakayama/iPhone-CameraSample
  • 11. cameraOverlayView ○ …
  • 12. ( Д ) …
  • 13. cameraOverlayView view
  • 14. view
  • 15. cameraOverlayView view
  • 16. cameraOverlayView view - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UIView *v = self.superview.superview; [[[v subviews] objectAtIndex:0] touchesBegan:touches withEvent:event]; }
  • 17. …… - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UIView *v = self.superview.superview; [[[v subviews] objectAtIndex:0] touchesBegan:touches withEvent:event]; }
  • 18. http://github.com/ ktakayama/iPhone-CameraSample
  • 19. view UINavigationTransitionView UIViewControllerWrapperView UIView PLCameraView PLPreviewView PLCameraFocusView UIImageView PLCropOverlay overlayView PLCropOverlayBottomBar