Skip to Content

My first iPhone application

Piggybank iPhone AppLast month I wrote about some resources for learning Objective-C that I was using to learn how to write iPhone applications. Judging by the number of comments on that article, I thought that I should write a follow-up post about my progress and the status of my first iPhone application.

Since I had a few programming classes in college (VB, C++), the logic of loops and decision statements was not a big hurdle. By using the learning resources like screencasts and books, I was able to get a better grasp of object-oriented programming (OOP) in general, and of course the syntax specific to Obj-C. I became familiar enough with Xcode just by using it for demo programs, and I used the wealth of iPhone developer resources from Apple to use the iPhone SDK. After paying $99 to Apple to enter into the iPhone Developer program, I was then able to access the forums; they were helpful in figuring out specific things (like how to preset a UIPickerView object).

When I felt comfortable with the basics, I started writing my first iPhone application. My girlfriend recommended that I create an application that keeps track of how much money is in my piggy bank since I'm always tossing spare change into it but never sure of the total (and therefore never sure when to cash out). This seemed like a simple enough idea to program, so I started on it shortly after I wrote the Obj-C article (mid January). I quickly figured out how to use Interface Builder to add buttons for coins and linked the touch of a coin to the addition of a coin value.

And then I made a rookie mistake... using floating point numbers for representing money. In my program testing, every so often my math would be $.01 wrong. I finally realized this was because I was using float values and the addition of money was not being done correctly. So I switched to using integer math for the entire program and solved that problem. When the math logic was complete, I spent time improving and beautifying the user interface with graphics and a color scheme.

With my first program complete, I decided to try to submit it to Apple for review in hopes that they would put it on the App Store. I had to download and install a Distribution Certificate to sign my Obj-C code, build the program for the proper iPhone OS version (I chose 2.0), and create a .zip of the .app that Xcode built. I then had to assemble my screenshots, App Store artwork, and application description for upload to iTunes Connect. I submitted the application, and about six days later it was approved and is now available in the App Store (along with 20,000 others!).

My personal goal of creating an iPhone application and getting it on the App Store is complete, but I will most likely work on more applications. If you're interested in using my first iPhone application, you can download my Piggybank application in the App Store for $0.99US.

[Editor's Note: Todd wrote Piggybank on his own time and it is not an 'official' TUAW application; this post is not an endorsement or review of the app, but a perspective on the development and submissions process from Todd's point of view.]

Last month I wrote about some resources for learning Objective-C that I was using to learn how to write iPhone applications. Judging by the...
 

Add a Comment

*0 / 3000 Character Maximum

42 Comments

Filter by:
Rory McMeekin

UK Version is out!

http://www.apptism.com/apps/piggybank-2

Check it out!

- vastly improved!

April 25 2009 at 3:34 AM Report abuse rate up rate down Reply
Max

On a slightly new tangent, Everyone out there who is going to begin making apps, take a hint from one that knows:
As a beginner, you are not going to be able to make complex applications, most likely your app is going to revolve around one or two instances of TableView. So for anyone who actually wants to contribute to the community and make a good app the key is Content. You can't make a 3-d game, but you can write some funny shit, or something that people will find genuinely useful (your expertise from another area... some talent you picked up and never thought you were going to use.) And do in making apps, think of the content of it.
Also, making an app that appeals to everyone is difficult (besides, we are different.) So make a nice niche application with well written content and charge more for it, only a few people want it but those few people REALLY want it, so charge comparatively (yes, that means the 10$ app)
I realize what I've said might be obvious to most, but for that guy who is buying a new mac to build the next awesome game, or turn-by-turn navigation, think about making a niche app with quality content.

February 18 2009 at 7:45 PM Report abuse rate up rate down Reply
Mike Eggleston

Something for all of you out there trying to get some help with iPhone development. There are boards out there that can help with iPhone development. The one that I frequent a lot is http://www.iphonedevsdk.com/
, also you can use IRC to get some realtime help (channels like #iphonedev).

Just thought that this would be of some use to people.

February 17 2009 at 12:45 PM Report abuse rate up rate down Reply
hector bianchi

todd, unless you are a 6 year old in some remote village designing iphone apps on a 128K I don't see the value of this post on TUAW.

February 16 2009 at 11:48 PM Report abuse rate up rate down Reply
XCool

Great! I've been working on an iPhone app myself and this post is a lot of help. I didn't know the process of submitting to the App Store is so tedious (but well worth every effort).

February 16 2009 at 10:49 PM Report abuse rate up rate down Reply
snostickrider

Please stop teaching the unwashed masses to code iPhone apps! We're getting too much shovelware as it is...

February 16 2009 at 1:54 PM Report abuse rate up rate down Reply
Jemster

Interesting article... 1 question though, did you need an "additional" Touch / iPhone to develop on that you had to dedicate to debugging the application? I'm interested in signing up, and $99 for the cert. is no problem, but if I needed to buy a 2nd iPhone just to test the application on then this would significantly increase the outlay?

The iPhone Developers Cookbook seems to reckon that you couldn't use the debug platform for anything else?

February 16 2009 at 7:50 AM Report abuse rate up rate down Reply
1 reply to Jemster's comment
Todd Ritter

You do not need an additional iPhone/iPod Touch. I own an iPhone and used it for debugging and testing. When you pay $99, you are able to generate the necessary certificates to provision your device for testing.

February 16 2009 at 10:39 AM Report abuse rate up rate down Reply
brandon

how hard is it to make an iphone app?
say if you don't know real code like c++ but have played with web code.
i was thinking about playing with sdk download.

www.brandonmorris.com
www.brandonmoris.com/blog

February 15 2009 at 11:50 PM Report abuse rate up rate down Reply
daba

not avaiable in new zealand.

February 15 2009 at 11:18 PM Report abuse rate up rate down Reply
Joost Schuur

What's with the rather corporate sounding disclaimer at the end?

February 15 2009 at 8:46 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.