Getting data from the Info plist

后端 未结 3 2051
梦谈多话
梦谈多话 2021-02-05 12:58

Whenever I want to get data from a plist file I use the following code:

NSString *filePath = [[NSBundle mainBundle] pathForResource:@\"FILE_NAME\" ofType:@\"plis         


        
3条回答
  •  星月不相逢
    2021-02-05 13:38

    Replace

    [[NSBundle mainBundle] pathForResource:@"FILE_NAME" ofType:@"plist"]
    

    with

    [[NSBundle mainBundle] pathForResource: @"Info" ofType: @"plist"]
    

提交回复
热议问题