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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -