objective c - Getting an object's attribute from an NSDictionary -


i have nsdictionary nsstring of values , of other values own classes. question how access attributes of 1 of classes dictionary. assumption this:

dictionary[@"work"].name 

will work object dictionary , name attribute object

yourclass *classvar = [self.yourdictionary objectforkey:@"work"]; classvar.name = @"your name"; 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -