Check That You're Running on Device or Simulator


#if !(TARGET_IPHONE_SIMULATOR)    
    //do something..
#endif