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

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

on

  • 1,881 views

 

Statistics

Views

Total Views
1,881
Views on SlideShare
1,875
Embed Views
6

Actions

Likes
0
Downloads
12
Comments
0

2 Embeds 6

http://www.slideshare.net 5
http://webcache.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

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

  • iPhoneOS3.1 API Kyosuke Takayama
  • OS2.x
  • ■ 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];
  • iPhoneOS3.1 released!!
  • API • Instance Method takePicture • Properties cameraViewTransform cameraOverlayView showsCameraControls
  • [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 *v = self.superview.superview; [[[v subviews] objectAtIndex:0] touchesBegan:touches withEvent:event]; }
  • …… - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UIView *v = self.superview.superview; [[[v subviews] objectAtIndex:0] touchesBegan:touches withEvent:event]; }
  • http://github.com/ ktakayama/iPhone-CameraSample
  • view UINavigationTransitionView UIViewControllerWrapperView UIView PLCameraView PLPreviewView PLCameraFocusView UIImageView PLCropOverlay overlayView PLCropOverlayBottomBar