Strange bug with plist
问题 I got a very strange bug when I'm trying to read my plist. My plist looks like : Root (Array) Item 0 (Dictionary) title (String) I want to display title in the log, so I did the code bellow: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil; NSString *path = [basePath stringByAppendingPathComponent:@"data.plist"]; NSMutableDictionary *dict = [[NSDictionary