Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-26-2010, 04:40 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 16
thefrownedupon is on a distinguished road
Default save file from web

hi i'm implementing a webview into my app that displays a pdf i have in my project. however i decided to retrieve it from a server instead as it will be updated frequently and apple takes forever to approve apps. i have seen tutorials on how to get a file from a server (in my case a pdf) and display it on screen. however i would like to know if it is possible to save this file so the user doesnt have to redownload the file everytime they open the app.

help is greatly appreciated

Last edited by thefrownedupon; 07-26-2010 at 04:42 PM.
thefrownedupon is offline   Reply With Quote
Old 07-26-2010, 04:50 PM   #2 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

yes, its possible.

You can use the NSFilemanager class to create files with NSData ( which would be the content you download from your server ).

You can also use it to check for files existence ( so you can check if you've already downloaded it before trying to redownload it again.)
smithdale87 is offline   Reply With Quote
Reply

Bookmarks

Tags
download, nsurll, pdf, save, webview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 346
14 members and 332 guests
alexP, appservice, bignoggins, EXOPTENDAELAX, guusleijsten, Hamad, heshiming, mariano_donati, Objective Zero, ohmniac, Paul Slocum, Rudy, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:44 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0