Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The <a href="http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVCaptureDevice_Class/Reference/Reference.html" rel="nofollow"><code>AVCaptureDevice</code></a> class was introduced in iOS 4.0, so it will not be available to use when your app is running on pre-4.0 devices. You should conditionalize the code in your app so that you first check for the presence of this class and only use its methods if it is present (i.e., if you are running on a 4.0 or later OS).</p> <p>The <a href="http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/cross_development/Using/using.html%23//apple_ref/doc/uid/20002000-SW3" rel="nofollow">Using Weakly Linked Classes in iOS</a> document contains very good instructions on how to determine whether a given class is available for your app to use, and a related section of that document <a href="http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/cross_development/Using/using.html%23//apple_ref/doc/uid/20002000-1114537" rel="nofollow">Using Weakly Linked Methods, Functions, and Symbols</a> explains how you can check for specific methods or functions.</p> <p>So basically, you need to wrap the parts of your code that use 4.0 and later API's in conditional statements so that devices with earlier OS's do not try to use that code because those libraries do not exist in that version of the OS.</p> <p>The <a href="http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html%23//apple_ref/doc/uid/10000163i-CH1-SW2" rel="nofollow">SDK Compatibility Guide</a> document may also be helpful.</p>
 

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