Learning iPhone UI application

I don’t like to use Interface Builder for creating a UI prototype for my apps.
I prefer the old way: draw it on paper and then implement the code.

But…
It takes a lot of time, needs a lot of fixing and every major modification of the UI takes a huge amount of energy.

I just read an interesting post on Cocoa with Love, and I discover an interesting tool to make my life easier:
Now I can create my UI with IB, and the tool will convert it to a .m file.
GREAT!!!

The tool is called nib2objc and it can be found on Github. Github, is a site that allows developers to share their code with the rest of the world. Another great site!!

The link for nib2objc is here, and don’t forget to thanks its author kosmaczewski

Happy coding!!

Fix iPhone Simulator’s missing Photo db

It happens: for same mysterious reason your iPhone Simulator has an empty Photo DB.
I cannot find a way to restore, even re-installing the simulator.
But…. If you have a jailbroken iPhone (or iPod Touch, of curse) you can do it.

Follow the steps:

  1. Identify you iPhone ip address in your local network, usually 192.168.1.6.
  2. Open a terminal in your mac and go to the following directory:
    cd /Users/<UserName>/Library/Application Support/iPhone Simulator/User/Media
    Change UserName in your default user.
  3. Now type the following command
    scp -r root@192.168.1.6:/private/var/mobile/Media/Photos/*

Done! Have fun!!

Using SDK applications on pwned development iPhones/iPod Touch

Erica wrote an interesting article that explains how to use SDK generated application on iPhone running a pwned version of iPhoneOS 2.0.
It will be useful for those who try to run their SDK application for testing purpose.
Read the full article here.

For me… I’m still waiting for official release of the iPhone 2.0 :sigh: