MPVolumeView and iOS 5

2.4k views Asked by At

I am trying to make a slider to control device volume. Previously I have accomplished this with MPVolumeView, but since iOS 5 I get the following error on build:

Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_MPVolumeView", referenced from:
  objc-class-ref in PlayerViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can someone please tell me what is the problem or is there another way to control devices volume.

Thanks in advance!

1

There are 1 answers

2
hypercrypt On BEST ANSWER

You need to make sure that you link against the MediaPlayer.framework