in NSDictionary

后端 未结 1 585
遥遥无期
遥遥无期 2021-02-14 22:39

I am stuck at a point when I convert data from web services to NSDictionary. But while accessing on console in debug mode it returns , while when i bind the values of dictionary

相关标签:
1条回答
  • 2021-02-14 23:27

    I meet this problem when I try to get information from Info.plist. Finally I use a string exchange.

    NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"Info"ofType:@"plist"];
        NSMutableDictionary *data = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];
        NSString *version = [data objectForKey:@"CFBundleShortVersionString"];
        self.labVersion.text = [NSString stringWithFormat:@"(%@)", version];
    
    0 讨论(0)
提交回复
热议问题