Load CoreData objects' string property into UIPickerView

Posted by OscarTheGrouch on Stack Overflow See other posts from Stack Overflow or by OscarTheGrouch
Published on 2010-03-16T04:36:03Z Indexed on 2010/03/17 0:41 UTC
Read the original article Hit count: 733

Hello

Currently I have an entity named "Events" in a CoreData app. "Events" has one string property named "eventName".

In the -(void)viewDidLoad I am trying to Fetch all the "Events" objects and load their "eventName" by alphabetical order into a UIPickerView.

The ultimate end goal is through the use of a textField, buttons and the pickerView being add new objects in and remove unwanted objects out. Basically turning the UIPickerView into a UITableView. Currently I am able to save objects to the CoreData store, but am not able to pull them/their properties out into the UIPickerView.

I am willing and able to share the project source code to anyone who wants it, or is willing to look at it to help out.

thanks Chris

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0

Related posts about core-data