Device vs Simulator

How to use compiler statements to create specific simulator/device code:

#if TARGETIPHONESIMULATOR
    //compiler specific code
#else
    // device specific code
#endif

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.