Steven Jiang
Steven Jiang

Reputation: 1004

Volume Control in UIImagePickerController

I want to make the max volume notice voice when user take a photo or start to record a video. Is it possible and not be rejected by appStore??

Upvotes: 2

Views: 371

Answers (1)

Dzy
Dzy

Reputation: 153

Celestial.framework has an AVSystemController class that lets you get and set the current volume. Unfortunately it is a private class so Apple won't accept it in AppStore submission

Instead,you can show the volume slider to set it by user.

Like this:

MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:window.bounds] autorelease];
[window addSubview:volumeView]; 
[volumeView sizeToFit];

Upvotes: 1

Related Questions