Sunday, 28 November 2010

Hello World and other programming triumphs

It's taken rather longer than I'd hoped but I have now completed a "Hello World" application in the iPhone simulator. Along the way I've learnt a few things:
- cmd-Tab moves between applications, much as Ctrl-Tab does in Windows but, unlike Windows, minimised applications aren't restored - instead the menu is displayed at the top of the screen.
- Taking screen shots is a bit more involved. In Windows alt-PrintScreen does the trick but in Mac OS it's cmd-shift-4 (or one of half a dozen other combinations, depending on exactly what you're trying to achieve) after which you have to add your shot to the email. Versatile, but not exactly intuitive.

Buying a book definitely helped (I was struggling with Apple's tutorials; they're good, but all the iOS walkthroughs are online and I still don't have broadband). A quick trip to the local wifi-enabled cafe and I'm all sorted with the Kindle edition of Beginning iOS 4 Application Development by Wei-Meng Lee, which seems pretty good. I have to admit that it didn't even occur to me to try iBook - I went straight to Amazon.

Anyway, having done that, I now have a crappy Hello World app running (see below), which isn't too bad for a couple of hours work. I'm starting to get a feel for the .h, .m, .xib and other files required in iOS programming although I still don't have a good understanding of their purpose (when you write in assembler everything is held in a single file, possibly with "includes", and the whole things is much simpler to pick-up). More reading now follows (and I've synced the book to my iPhone so I can read it on the bus) then I'll be heading back to the code to stick some more things in my app.

No comments:

Post a Comment