ios - How to setValue of textfield in Dictionary? -
i want store text of uitextfield in dictionary , want update text in label.but don't know how it.how define key etc.
[self.datadictionory setvalue:textfld.text forkey:@"myvalues"];
here code trying app crashes.i know wrong code.then how can set value in dictionary.
you need make sure nsdictionary nsmutabledictionary
self.datadictionory = [nsmutabledictionary dictionary]; [self.datadictionory setvalue:textfld.text forkey:@"myvalues"];
Comments
Post a Comment