Your SlideShare is downloading. ×
iPhoneOS3.1でのカメラAPIについて
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

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

1,315

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,315
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
13
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

×