开发者

CoreData data into UITableView in UIViewController?

开发者 https://www.devze.com 2023-01-15 23:52 出处:网络
I have a UITableView inside 开发者_如何学Goa UIViewController that is using ABPeoplePickerNavigationControllerDelegate.

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

精彩评论

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

关注公众号