iPhone - Resolve fileAttributesAtPath warning:
In one of my app I got a warning like " 'fileAttributesAtPath: traverseLink: ' is deprecated " from this line "NSDictionary* attr = [[NSFileManager defaultManager] fileAttributesAtPath:file traverseLink:YES];". To fixe this issue use Use attributesOfItemAtPath:error: instead. That is...
Solution:
In one of my app I got a warning like " 'fileAttributesAtPath: traverseLink: ' is deprecated " from this line "NSDictionary* attr = [[NSFileManager defaultManager] fileAttributesAtPath:file traverseLink:YES];". To fixe this issue use Use attributesOfItemAtPath:error: instead. That is...
Solution:
NSError* error;
NSDictionary* attr = [[NSFileManager defaultManager] attributesOfItemAtPath:file error:&error];
I'm fixed my issue by this way.
0 comments:
Post a Comment
Share your thoughts here...