I have NSZombieEnabled=YES set, and I want to do the following code
- (NSString*) udid
{
if (udid == nil)
{
udid = [[UIDevice currentDevice] uniqueIdentifier];
NSLog(@"UDID=%@", udid);
}
return udid;
}
it turns out when udid is "released", it had been replaced with a Zombie, it's not nil. So I want to do something like
if (udid == nil || [udid isZombie])
{
udid = [[UIDevice currentDevice] uniqueIdentifier];
NSLog(@"UDID=%@", udid);
}
I tried [udid isKindOf:[NSZombie Class]], but NSZombie does not exist. So how can I tell is the udid object a Zombie now?