I i.yalovecky macrumors member Original poster Feb 24, 2010 67 0 Apr 29, 2010 #1 I wanna bind dictionary elem to textfield, how i can do this?
jared_kipe macrumors 68030 Dec 8, 2003 2,967 1 Seattle 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 Jun 15, 2000 7,958 7 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".