Can't read from plist

前端 未结 2 2003
别跟我提以往
别跟我提以往 2021-01-16 20:42

I\'m trying to do something that I already know how to do - but it isn\'t working. Looking for ideas to fix this. I think it\'s something to do with the way Xcode 4.1 create

2条回答
  •  北海茫月
    2021-01-16 21:00

    The root object of you .plist is a dict, so you need to load it in memory as a NSDictionary.

    myDictionary = [[NSDictionary alloc] initWithContentsOfFile: myFile];
    

提交回复
热议问题