objective c - Accessing a second NSDictionary in the plist? -


i wondering how access second nsdictionary in plist other root dictionary, have string in second dictionary show in console right i'm getting of them. here's code, console , plist.

my plist. (its name multi.plist) my plist

my code.

    nsstring *pathforplist = [[nsbundle mainbundle] pathforresource:@"multi"    oftype:@"plist"];     nsdictionary *dict = [[nsdictionary alloc] initwithcontentsoffile:pathforplist];       nslog(@"%@", [dict objectforkey:@"abs"]); 

and console spitting out right now. enter image description here

so after looking @ that, i'll explain again like, instead of having of contents of abs nsdictionary being in console, show title string lies within dictionary. appreciated. thanks

the abs entry dictionary itself, have :

nsdictionary * abs = dict[@"abs"]; nslog(@"%@", abs[@"title"]); 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -