开发者

CoreData data into UITableView in UIViewController?

I have a UITableView inside 开发者_如何学Goa UIViewController that is using ABPeoplePickerNavigationControllerDelegate.

It looks like this:

@interface MyViewController : UIViewController <ABPeoplePickerNavigationControllerDelegate> {
}

In the .xib I have a UITableView that I need to populate with data stored in CoreData. How can I go about doing this?


Try using 'NSFetchedResultsController', here's a good tutorial:

http://www.raywenderlich.com/999/

and Apple Sample Code:

https://developer.apple.com/library/ios/samplecode/iPhoneCoreDataRecipes/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008913

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜