Re: Looking for examples of UIScrollView using Core Data
Re: Looking for examples of UIScrollView using Core Data
- Subject: Re: Looking for examples of UIScrollView using Core Data
- From: Fritz Anderson <email@hidden>
- Date: Sat, 17 Apr 2010 13:02:57 -0500
On 17 Apr 2010, at 12:35 PM, colo wrote:
> I have been hacking at the code from the iphone cookbook trying to get
> a UIScrollView to fetch Core Data sql.
> I checked the archives first and did not find anything. I know that
> tableviews work hand in hand with Core Data.
> Every tutorial I can find verifies this.
Could you explain precisely what user-visible behavior you're looking to provide? Your question does not make sense at the level you state it.
A UIScrollView allows you to scroll and zoom the UIViews it contains. It has nothing to do with the data that might be presented in it. It knows nothing about data; it's just a view. It can no more "fetch" data than a plastic frame for photographs can take pictures.
Perhaps you mean that you have data in a Core Data store — a model — that you want to display in a UIView (or UIView subclass, or a UIView containing other UIViews to display parts of the data) — a view. You will need an intermediary object — a controller — that interprets the model and sets the view to display it. If you think of it that way, using a UIScrollView will be a minor, and probably obvious, detail.
Review the "MVC" (model-view-controller) design pattern in the Apple documentation and in the tutorials you're reading until you understand it very well. You won't get anywhere just by following cookbooks.
— F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden