Return to Snippet

Revision: 12332
at March 11, 2009 03:05 by erik


Initial Code
#if TARGET_IPHONE_SIMULATOR // Device will hit external server over cell network NSString const *ROOT_URL = @"http://www.external-site.com"; #else // Simulator will hit local server over LAN NSString const *ROOT_URL = @"http://localhost:8667"; #endif

Initial URL
http://www.pathf.com/blogs/2008/12/iphone-sim-device-preprocessor/

Initial Description

                                

Initial Title
iPhone: Using Pre-processor Directives for Device Testing

Initial Tags
iphone

Initial Language
Objective C