iphone Programming Glossary: cameraview
iPhone: Get camera preview http://stackoverflow.com/questions/1317978/iphone-get-camera-preview view. But the problem is when I want to get the camera view the image is just a black rectangle. Here's my code UIView cameraView imagePicker.view subviews objectAtIndex 0 subviews objectAtIndex 0 subviews objectAtIndex 0 UIGraphicsBeginImageContext.. objectAtIndex 0 subviews objectAtIndex 0 subviews objectAtIndex 0 UIGraphicsBeginImageContext CGSizeMake 320 427 cameraView.layer renderInContext UIGraphicsGetCurrentContext UIImage viewImage UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext..
Getting “Using two-stage rotation animation” warning with UIImagePickerController http://stackoverflow.com/questions/2878947/getting-using-two-stage-rotation-animation-warning-with-uiimagepickercontrolle the warning is a problem but to eliminate the warning you can do the following self a UIViewController void showCamera cameraView UIImagePickerController alloc init UIApplication sharedApplication keyWindow setRootViewController cameraView self presentModalViewController.. cameraView UIImagePickerController alloc init UIApplication sharedApplication keyWindow setRootViewController cameraView self presentModalViewController cameraView animated NO void removeCamera UIApplication sharedApplication keyWindow setRootViewController.. alloc init UIApplication sharedApplication keyWindow setRootViewController cameraView self presentModalViewController cameraView animated NO void removeCamera UIApplication sharedApplication keyWindow setRootViewController self self dismissModalViewControllerAnimated..
Avfoundation - Play and record video (along with audio and preview) simultaneously http://stackoverflow.com/questions/6991452/avfoundation-play-and-record-video-along-with-audio-and-preview-simultaneous alloc initWithSession captureManager session self.captureVideoPreviewLayer previewLayer UIView view self cameraView CALayer viewLayer view layer viewLayer setMasksToBounds YES CGRect bounds view bounds captureVideoPreviewLayer setFrame..
|