cocoaTouch/otherSrc/CommodityFunctions.h
changeset 3513 f589230fa21b
parent 3490 016b3172b645
equal deleted inserted replaced
3512:6a8b5f313190 3513:f589230fa21b
    42 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation);
    42 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation);
    43 NSInteger randomPort ();
    43 NSInteger randomPort ();
    44 void popError (const char *title, const char *message);
    44 void popError (const char *title, const char *message);
    45 void print_free_memory ();
    45 void print_free_memory ();
    46 
    46 
    47 #if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_3_2
       
    48 typedef enum {
       
    49     UIUserInterfaceIdiomPhone,           // iPhone and iPod touch style UI
       
    50     UIUserInterfaceIdiomPad,             // iPad style UI
       
    51 } UIUserInterfaceIdiom;
       
    52 #define UI_USER_INTERFACE_IDIOM() UIUserInterfaceIdiomPhone
       
    53 #endif // ifndef __IPHONE_3_2
       
    54