In Apples documentation for Game Center it says to use this code to detect if Game Center is available:
+ (BOOL) isGameCenterAvailable {
Class gcClass = (NSClassFromString(@"GKLocalPlayer"));
NSString *reqSysVer = @"4.1";
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];
BOOL osVersionSupported = ([currSysVer compare:reqSysVer options:NSNumericSearch] != NSOrderedAscending);
return (gcClass && osVersionSupported);
}
But it returns YES on my iPhone 3G which doesn't have Game Center. Anyone out there who has solved this?