Tag Archives: Cocoa

Building an iPhone App to Parse the Twitter API with NSXMLParser

iOS has a simple event-based XML parser built in, which makes it fairly easy to do less involved parsing operations without having to load up a third-party framework. This tutorial will show you how to build a simple iPhone application that will download an XML feed from Twitter containing a user’s tweets, and then display them with a pretty UI. (You could easily adapt this to parse other XML documents, such as RSS feeds.)

Continue reading →

iOS UIFileSharingEnabled Property List Flag

Here’s a tip for you iOS developers. Have you ever noticed how some apps let you copy files back and forth between their Documents directories and your computer from within iTunes? It’s very easy to implement it yourself. As a matter of fact, it’s just a boolean switch in your app’s plist file.

All you have to do is open the plist file in your Xcode project and add the key UIFileSharingEnabled with a value of YES. iTunes will display any files in your application’s Documents folder and allow you to copy them to your computer, or vice versa.

This is a feature I would like to see more developers implement. It would be great for things like games or other apps that don’t sync with a web service, as it provides a convenient way to back up your progress (e.g. game save files).

A Few Resources to Get Started With iPhone App Development

Want to write an iPhone app? Assuming you have a couple of necessary prerequisites, namely a Mac and an iPhone or iPod Touch, it’s not too hard to get started. It is best if you have some programming experience, as even I had a bit of a learning curve with my solid understanding of PHP and JavaScript. Assuming a little bit of programmatical knowledge, here are a few resources to help you get started with iPhone development.

Continue reading →