Closed niko1aus closed 10 years ago
Sorry, my mistake. Right way for this task
NSDictionary *options = @{
MMfont: [UIFont fontWithName:@"VDS" size:18.0],
MMselectedObject: cigarettesInPack1
};
[MMPickerView showPickerViewInView:self.view
withStrings:countArray
withOptions:options
completion:^(NSString *selectedString) {
//selectedString is the return value which you can use as you wish
cell.value.text = selectedString;
[userDefaults setObject:cell.value.text forKey:@"cigarettesInPack"] ;
}];
I have trouble when use @{selectedObject: key}
Xcode write error:![2014-04-24 18 18 32](https://cloud.githubusercontent.com/assets/1097243/2790400/64bd9126-cbbb-11e3-8861-5aad81ea5cda.png)
I want to select row. How i can do this?