Networking
iOS Developer Tips - Visitor Stats:
|
|
|
How to Parse an NSURL Object
When working with NSURL objects, often times there are a number of values passed along with the URL. For example, a query string is often included as a means to embed HTML form data. This tip shows how to parse and print the values of a URL.
A Better URL Encoding Method
The NSString class contains a method stringByAddingPercentEscapesUsingEncoding which returns a URL-encoded string. Problem is, the method seems to provide support for percent escapes on just a few characters. Below is a category extension to the NSString class that uses the method CFURLCreateStringByAddingPercentEscapes in the CFURL class to handle a more complete set of characters for [...]
Push Notifications for Ad Hoc Distributions
Here’s a quick one that may save you some time..once you have push notifications working on a development device and it’s time to create an Ad Hoc build for others to deploy and test your app, on the Apple Developer Portal you will need to configure the production SSL certificate for your application and install [...]
HTTP Basic Authentication – Accessing Password Protected Servers
It’s not uncommon for a server to require credentials for access. A common example is a password protected directory on a web-server that will prompt for a username and password before allowing access. When using a NSURLRequest object to access a server, the delegate methods of NSURLConnection offer a means to be notified when an [...]
Post to a Twitter Account from the iPhone
This is the third tip in a series of four that is based on content from the O’Reilly book Head First iPhone Development. This tip is from a code sample in Chapter 3 – Objective-C for the iPhone, and shows how to post to a Twitter account.
iPhone JSON Flickr Tutorial – Part 3
Welcome to the third and final post on working with the iPhone SDK, JSON and the Flickr API. In I Part 1 we setup a JSON library, created a Flickr API key and wrote code to retrieve images and the titles from Flickr. In Part 2 of the series we dove into the how to [...]
iPhone JSON Flickr Tutorial – Part 2
Welcome to the second tutorial in this three part series on using the iPhone SDK, JSON and Flickr. In the first tutorial we covered the basics for setting up the JSON framework within your projects, registering to get Flickr API key, and writing some code to asynchronously fetch images and their accompanying titles from Flickr. [...]
iPhone JSON Flickr Tutorial – Part 1
Two consistently popular posts on iPhone Dev Tips are JSON Frameworks for iPhone Part 1 and Part 2. Seems a good time to revisit the combination of the iPhone and JSON, this time creating a complete working application. This is part one of a three part series in which I’ll build a Flickr photo viewer, [...]
JSON Framework for iPhone
Editor’s Note: Due to the popularity of this iPhone JSON series, a new three part tutorial series on working with JSON was published in August 2009. You can find the latest JSON iPhone tutorial series at the links below: iPhone JSON and Flickr Tutorial – Part 1 iPhone JSON and Flickr Tutorial – Part 2 [...]
Troubleshooting NSURLConnection
I was recently helping a friend debug an interesting piece of code to asynchronously download images. Without giving away the application idea, let me explain what we were attempting to do from the 30,000 foot view and then share what we discovered, hopefully saving you time should you ever need to implement similar functionality.






