0
iPhoneOS3.1
       API
      Kyosuke Takayama
OS2.x
■
UIView *plView = [[[[[[self.view subviews] objectAtIndex:0]
                subviews] lastObject] subviews] lastObject];...
iPhoneOS3.1 released!!
API


•   Instance Method
      takePicture
•   Properties
      cameraViewTransform
      cameraOverlayView
      showsCa...
[cameraCotroller takePicture]
cameraCotroller.cameraViewTransform



                  transform
cameraCotroller.cameraOverlayView



                    View
cameraCotroller.showsCameraControls
http://github.com/
ktakayama/iPhone-CameraSample
cameraOverlayView

○               …
( Д )
  …
cameraOverlayView   view
view
cameraOverlayView
     view
cameraOverlayView                   view



- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
   UIView *...
……

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
   UIView *v = self.superview.superview;
   [[[v su...
http://github.com/
ktakayama/iPhone-CameraSample
view

UINavigationTransitionView
  UIViewControllerWrapperView
    UIView
      PLCameraView
        PLPreviewView
       ...
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
iPhoneOS3.1でのカメラAPIについて
Upcoming SlideShare
Loading in...5
×

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

1,328

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,328
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×