Archive for January, 2009

iPhone Developer Tips Visitor Stats:
126,691 Pageviews and 94,296 visitors in the past 30 days.



Get Users Home Directory – Part 2

In the previous tip on working with plists, I showed an example of how to create a path to a file to be stored in the /Documents folder. In this tip I want to show an example that arrives at the same end result, however, I’ll use methods which will eliminate the hardcoding of paths [...]

Data / File Management

Get Users Home Directory – Part 1

In a recent application I needed to create several property list files (plists) to store application information. I opted to store the files in the folder named “Documents” off the home folder. Here is the code I used to specify the path where I wanted the files written and the code to build an NSString [...]

Data / File Management

Using Application Badges

Several native applications on the iPhone use application badges as an indicator of new messages, think email and SMS. Creating badges is quite straightforward and is nothing more than a method call, passing in the desired number to display.

User Interface

Single, Double and Triple Taps

If you need to tinker with the threshold (time between clicks) when working with single, double and triple taps on the touch screen, one approach for this follows. What follows is a short example that demonstrates how you can manage the delay between taps.

Cocoa

Get Application Name

If you ever need to get the name of your application in code, for example, to display the application name across a navigation bar, it’s as near as the bundle for your application. The code to get the name is as simple as this: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"]; The breakdown is as follows:

Cocoa