iPhone Cache Manager - iphone

I am trying to create a reusable Cache Manager component which can be plugged into other iPhone projects. My cache manager should support caching of Screens(with data in them) as well as images. The primary idea would be to reduce network activity.
I am comparatively new to iPhone and have some basic iPhone programming knowledge. Please let me know of the following-
1. Am I thinking in the right direction?
2. Does iPhone architecture supports this kind of caching? If so, how?
3. Also, any pointers towards related iPhone code samples or URLs?
Thanks in advance for your time

Looks like you want to roll your own solution but I'll recommend a project on Github to get you started with the code. SDWebImage has some great code for using the cache.
You are going to be dealing with the NSFileManager a lot. Specifically check out SDImageCache.m

Related

What’s the best way to load content in an iOS app?

I am working on an iOS wallpapers app that lets users explore interesting wallpaper images. I am not sure, however, what the best way to load the images is. I would be most comfortable with a server less approach, as I would not have to worry about server upkeep. However, this means I’d have to include all the images in the app package which would be very heavy and not easy to add new content. I assume I will need to go the server route but am looking for a push in the right direction as to which service I should use, how much it will cost, and if I can support millions of users out of the gate. I am comfortable with Firebase but am not sure if that is the best option. Please help!
In your case keeping static images in your app sounds like a bad idea, for the reasons you listed. For a small project using Firebase Realtime Database or Cloud Firstore along with the Storage module would probably be the safest approach.
If you haven't already check out the Kingfisher (iOS) and Piccaso (Android) libraries to handle the image downloads.

Pull the Wifi history from a iPhone 3GS

I'm using an iPhone 3GS, and for reasons relating to an art project I was wondering if I can pull a list of known wifi's, without specifically going to where the wifi is transmitting of course. Is there a safe way to do this? I assume this is on the SQLite db? Be interested what is know on the topic, or where to being researching anyway!
Check out SpyPhone. It exemplifies similar information which you can pull from an iPhone.
https://github.com/nst/spyphone/
You can easily just download it and run it on your device if you don't need to do it programmatically yourself. If you do, you can easily rip out the code.
Cheers!

Logging into and communicating with a server from an iOS app...help!

Hey everyone. I have a fair amount of experience developing iOS apps, but nothing much with web/server interacting apps. For a project at work, I am making an app that will let you login, and get pictures off from a server that will then be downloaded for display and review on the local device.
I need to get some pointers on the correct approach to take. Are there built-in classes that make doing something like this easy? Once the cogent is downloaded from the server, it will be viewed locally, so all I need is to get a point in the right direction for logging in and communicating with a server…from an iPhone.
Can anybody point me in the right direction?
Me, I'm using ASIHTTPRequest Librayry to communicate / download with Internet.
For example, for an news app I download latest news in JSON (with a PHP script on a web server) and store datas with SQLite. If you need a little explanation of JSON with iPhone, check here (in french, but source codes are in english ^^)
When I need to download an image, I use ASIHTTPRequest and a queue to avoid downloading to much files at the same time.
If you want more information about a step, just say it.
Good Luck !
NURLConnection is your friend, along with its delegate methods.
Don't be lured by the temptation to use the -sendSynchronous method (which, now that I think about it, if you require authentication, you probably can't use anyway).

What is the best way to transfer an object between two iOS devices running the same app?

I'm trying to give my iOS app the ability to transfer an object to another iOS device running the same app. The object is on the order a few thousand KB of memory. Does anyone have a suggestion as to how to do this? I am considering using FTP, but that seems a little messy. Does anyone have any suggestions on possibly using GameKit? Or something else?
GameKit would probably be your best bet. This link seems to go over it pretty well
As an alternative, I've found the SimpleNetworkStream example that apple gives an exact match as to what I want to do. Simple Peer to Peer file transfer might be the best solution.... It seems that people are having a lot of trouble transferring large data objects with GameKit.

Native app for iPhone!

I want to develop a native universal app(i.e for iPhone and iPad) for my orgaization.I want to include some of the essential features of the organiztion website into my native app.For obvious reasons i cant store this huge data into iPhone itself.so data will be fetched from the server but application would be a native app.so are there any APIs available to do this?
I always find it's easier to start using sample code, and lucky for you Apple provides a lot of this. Here is the reference library for all kinds of goodies to learn off of and hack your way through: http://developer.apple.com/iphone/library/navigation/index.html#section=Resource%20Types&topic=Sample%20Code
A few noted ones... (I left out some advanced ones like BonjourWeb Reachability and AdvancedURLConnections but look at those once you gain a little more understanding)
URL Cache: http://developer.apple.com/iphone/library/samplecode/URLCache/Introduction/Intro.html
RSS Feed Parser: http://developer.apple.com/iphone/library/samplecode/SeismicXML/Introduction/Intro.html
MailComposer: http://developer.apple.com/iphone/library/samplecode/MailComposer/Introduction/Intro.html
Also, a couple books you should get to start your journey on iOS (these are two of the best and easy to understand IMO):
http://apress.com/book/view/9781430224594
http://apress.com/book/view/9781430225058
UIWebView will show any web page you point it to.
Maybe do a mixed approach with some stuff built right into the app, and the bigger or frequently changing parts load from the web.
You can use the UIWebView to access your organization's website from inside a native application...
While I agree that you may need to do your research first, the IPhone/Ipad SDK includes a very easy to use XML parser (NSXMLParser). I would suggest you devise a XML web service for retrieving the data from your company's servers and parse it on the ipad/iphone to the presentation you require.
Best of luck, i've found objective-c very rewarding/challenging.