checking if a value for a core data entity is a boolean or no
I would like to check if a attribute in core data is boolean. How do I go
about it? I can check if it is date class by:
if([[dict valueForKey:key] isKindOfClass:[NSDate class]])
{
value = ([outputFormatter stringFromDate:[dict
objectForKey:key]]);
[dict setObject:value forKey:key];
}
else
{
value = [dict objectForKey:key];
}
Need this fix for an urgent delivery.Thanks in advance for any advice.
No comments:
Post a Comment