download ios local-storage objective-c wget

How do I download and save a file locally on iOS using objective C?

I’m new to Objective-C and I want to download a file from the web (if it was changed on the webserver) and save it locally so it can be used by my application.

Mainly I want to implement what wget --timestamp <url> does.