March 2014
Intermediate to advanced
672 pages
40h 11m
English
Recording video is almost identical to capturing still images with the camera. Recipe 8-3 allocates and initializes a new image picker, sets its delegate, and presents it:
UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.sourceType = UIImagePickerControllerSourceTypeCamera; picker.videoQuality = UIImagePickerControllerQualityTypeMedium; picker.mediaTypes = @[(NSString *)kUTTypeMovie]; // public.movie picker.delegate = self;
Choose the video quality you want to record. As you improve quality, the data stored per second increases. Select from high (UIImagePickerControllerQualityTypeHigh), medium (UIImagePickerControllerQualityTypeMedium ), low ...
Read now
Unlock full access