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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 08-30-2009, 08:21 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2009
Location: Dundee, Scotland
Posts: 3
Question Clear iPhone cache for initWithURL

Hi,

My app needs to check a server to see if new content is available. I do this by storing an array inside a .plist on the server and then having the app call
Code:
NSMutableArray *onlineArray = [[NSMutableArray alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://server.net/episodes.plist"]];
This works the first time but after that the app seems to cache the response and won't download from the server again unless i turn the device off and on again. Is there a way I can force it to ignore the cache or clear the cache before I call initWithURL?

Thanks very much for any help you can give me.
Maximinn is offline   Reply With Quote
Reply

Bookmarks

Tags
cache, initwithcontentsofurl, nsmutablearray, plist

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
» Stats
Members: 158,884
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, karlam963
Powered by vBadvanced CMPS v3.1.0

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