Re: Get file from server with iPad App
Re: Get file from server with iPad App
- Subject: Re: Get file from server with iPad App
- From: Alex Zavatone <email@hidden>
- Date: Tue, 13 Aug 2013 13:52:49 -0400
There's a great example file in the docs that is available through Dash or the dev site.
The project file is called Lazy Table Images and it provides a good class for bringing in an image from a server asynchronously.
http://developer.apple.com/library/ios/samplecode/LazyTableImages/Introduction/Intro.html
What's really nice though is that it has been updated regularly through its lifespan and if you have access to the older versions, you can see how the code originally worked, how it was originally structured, the changes in the classes when it was updated to use blocks and finally, the changes to make it run using ARC.
It's at 1.4 now and uses ARC and blocks, though looking at how the earlier iterations worked without blocks is also nice to see and understand.
If you can't find any of the earlier versions and with to look at them, I can point you to them, so please feel free to contact me off list.
Speaking of earlier versions of certain files, sometimes reviewing the previous version of an Apple Dev file is quite useful. Is there any convenient way that anyone knows of to look at a earlier version of an example file in the dev docs besides downloading an older version of Xcode and hoping the dev docs have the earlier version?
Cheers.
On Aug 12, 2013, at 11:12 PM, koko wrote:
>
> I want to get a file from a server into my iPad App.
>
> If I do http://... it launches Safari.
>
> I just want the file … what is the proper way to do this?
>
> -koko
>
> _______________________________________________
>
> 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
_______________________________________________
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