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.