我使用以下代码将 plist 显示到 NSDictionary/NSMutableDictionary 中,但是当我打印该变量时它返回空值?请帮我?
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *Path = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"Recent.plist"];
NSLog(@"%@",Path); //Path is correct
NSDictionary *d=[[NSDictionary alloc]initWithContentsOfFile:Path];
NSMutableDictionary *data = [[NSMutableDictionary alloc]initWithContentsOfFile:Path];
NSLog(@"%@",d);