I i.yalovecky macrumors member Original poster Apr 29, 2010 #1 I wanna bind dictionary elem to textfield, how i can do this?
jared_kipe macrumors 68030 Apr 29, 2010 #2 UITextField *textField; // assumed its already instantiated. NSDictionary *dict; // assume you have a dict already with key @"key" textField.text = [dict objectForKey: @"key"];
UITextField *textField; // assumed its already instantiated. NSDictionary *dict; // assume you have a dict already with key @"key" textField.text = [dict objectForKey: @"key"];
K kainjow Moderator emeritus Apr 29, 2010 #3 You bind to a dictionary just like you'd bind to anything else. For example, if you have a Controller object that holds your dictionary "dict" containing a key "Name", then you'd bind to the Controller and set the Model Key Path to "dict.Name".
You bind to a dictionary just like you'd bind to anything else. For example, if you have a Controller object that holds your dictionary "dict" containing a key "Name", then you'd bind to the Controller and set the Model Key Path to "dict.Name".