¡@

Home 

2014/10/15 ¤U¤È 10:10:48

iphone Programming Glossary: kuttypeimage

configuring frame size of UIImagePickerController

http://stackoverflow.com/questions/10164581/configuring-frame-size-of-uiimagepickercontroller

alloc init imagePickerController.delegate self imagePickerController.mediaTypes NSArray arrayWithObjects NSString kUTTypeImage nil imagePickerController.sourceType UIImagePickerControllerSourceTypeCamera imagePickerController.cameraCaptureMode UIImagePickerControllerCameraCaptureModePhoto..

Photo taken with camera does not contain any ALAsset metadata

http://stackoverflow.com/questions/10166575/photo-taken-with-camera-does-not-contain-any-alasset-metadata

NSString mediaType info objectForKey UIImagePickerControllerMediaType if mediaType isEqualToString __bridge NSString kUTTypeImage void ^ALAssetsLibraryAssetForURLResultBlock ALAsset ^ ALAsset asset get images metadata NSDictionary metadata asset.defaultRepresentation.metadata..

iOS: Image get rotated 90 degree after saved as PNG representation data

http://stackoverflow.com/questions/10850184/ios-image-get-rotated-90-degree-after-saved-as-png-representation-data

info NSString mediaType info valueForKey UIImagePickerControllerMediaType if mediaType isEqualToString NSString kUTTypeImage AppDelegate delegate AppDelegate UIApplication sharedApplication delegate delegate.originalPhoto info objectForKey @ UIImagePickerControllerOriginalImage..

Save Photos to Custom Album in iPhones Photo Library

http://stackoverflow.com/questions/10954380/save-photos-to-custom-album-in-iphones-photo-library

NSString mediaType info objectForKey UIImagePickerControllerMediaType if mediaType isEqualToString __bridge NSString kUTTypeImage pull GPS information from photos metadata using ALAssetsLibrary void ^ALAssetsLibraryAssetForURLResultBlock ALAsset ^ ALAsset..

CGAffineTransformInvert: singular matrix in UIImagePickerController with showsCameraControls = NO

http://stackoverflow.com/questions/13708496/cgaffinetransforminvert-singular-matrix-in-uiimagepickercontroller-with-showsca

availableMediaTypesForSourceType UIImagePickerControllerSourceTypeCamera if mediaTypes containsObject NSString kUTTypeImage UIImagePickerController picker UIImagePickerController alloc init picker.delegate self picker.sourceType UIImagePickerControllerSourceTypeCamera.. self picker.sourceType UIImagePickerControllerSourceTypeCamera picker.mediaTypes NSArray arrayWithObject NSString kUTTypeImage picker.allowsEditing NO picker.showsCameraControls NO self presentViewController picker animated YES completion NULL ....

Select videos using UIImagePickerController in 2G/3G

http://stackoverflow.com/questions/2758466/select-videos-using-uiimagepickercontroller-in-2g-3g

containsObject NSString kUTTypeMovie self setVideoRecordingAvailable YES if availableTypes containsObject NSString kUTTypeImage self setCameraAvailable YES For photo library mode availableTypes UIImagePickerController availableMediaTypesForSourceType.. NSLog @ Available types for source as photo library @ availableTypes if availableTypes containsObject NSString kUTTypeImage self setPhotoSelectionAvailable YES if availableTypes containsObject NSString kUTTypeMovie self setVideoSelectionAvailable..

didFinishPickingMediaWithInfo return nil photo

http://stackoverflow.com/questions/3088874/didfinishpickingmediawithinfo-return-nil-photo

NSDictionary info picker parentViewController dismissModalViewControllerAnimated YES MediaType can be kUTTypeImage or kUTTypeMovie. If it's a movie then you can get the URL to the actual file itself. This example only looks for images... the edited image first. If it doesn't exist then you get the original image. if CFStringCompare CFStringRef mediaType kUTTypeImage 0 kCFCompareEqualTo UIImage picture info objectForKey UIImagePickerControllerEditedImage if picture picture info objectForKey..

How to take picture from Camera & saved in Photo Gallery by programmatically?

http://stackoverflow.com/questions/6812634/how-to-take-picture-from-camera-saved-in-photo-gallery-by-programmatically

availableMediaTypesForSourceType UIImagePickerControllerSourceTypeCamera if media containsObject NSString kUTTypeImage YES UIImagePickerController picker UIImagePickerController alloc init picker.sourceType UIImagePickerControllerSourceTypeCamera.. UIImagePickerControllerCameraCaptureModePhoto picker setMediaTypes NSArray arrayWithObject NSString kUTTypeImage picker.delegate self self presentModalViewController picker animated YES picker release else UIAlertView alert UIAlertView.. Info @ info NSString mediaType info valueForKey UIImagePickerControllerMediaType if mediaType isEqualToString NSString kUTTypeImage UIImage photoTaken info objectForKey @ UIImagePickerControllerOriginalImage Save Photo to library only if it wasnt already..

Select Multiple Images from Photo Library

http://stackoverflow.com/questions/9542487/select-multiple-images-from-photo-library

UIImagePickerControllerSourceTypePhotoLibrary imagePicker.mediaTypes NSArray arrayWithObject NSString kUTTypeImage popoverController UIPopoverController alloc initWithContentViewController imagePicker popoverController presentPopoverFromRect..

How to save recorded video into photo album?

http://stackoverflow.com/questions/9991332/how-to-save-recorded-video-into-photo-album

photo album Following code is to save image took from camera into photo album. if mediaType isEqualToString NSString kUTTypeImage image info objectForKey UIImagePickerControllerEditedImage UIImageWriteToSavedPhotosAlbum image self @selector image..