Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>One problem could be that in ios 5 when you call AudioServicesPlaySystemSound, it stop working if there is an active AVCaptureSession with an audio device active. </p> <p>Also check the names of imports in your files, make sure the audiotoolbox import is in all your viewcontrollers. I also went to a guide and got this for you :) I'll leave the website's name at the bottom</p> <p>Step 1: Import the AudioToolbox Framework Begin by importing the Audio Toolbox framework into your application in order to make the System Sound Services available to your code. To do so, select the “PhoneAppSkin” project in the Project Navigator pane in Xcode, then select “PhoneAppSkin” under “TARGETS”, and finally select the “Build Phases” tab. After doing so, your screen should look something like this:</p> <p><img src="https://i.stack.imgur.com/kOoBz.jpg" alt="enter image description here"></p> <p>Next, click the “Link Binary With Libraries” drop down, and click the “+” symbol to add a new framework to our project’s linking phase.</p> <p><img src="https://i.stack.imgur.com/QIYdv.jpg" alt="enter image description here"></p> <p>Finally, find the “AudioToolbox” framework in the popup window, and then click “Add”.</p> <p><img src="https://i.stack.imgur.com/RLCHx.jpg" alt="enter image description here"></p> <p>Next, open up the PhoneViewController.h file and add the line necessary to actually import the Audio Toolbox framework into your class:</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import &lt;AudioToolbox/AudioToolbox.h&gt; </code></pre> <p>The Audio Toolbox functions should now work</p> <p>Website I got the images from: <a href="http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_playing-systemsoundid/" rel="noreferrer">http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_playing-systemsoundid/</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload