I dont know for which iPhone OS I am compiling my code, 3.0 or 2.2...
Check your target in your build config in xCode.
#ifdef __IPHONE_3_0 NSLog(@"THE 3.0 SDK"); #endif