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 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. 
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
Post a Comment