I can't bring myself to use iPhone because of the walled garden. Sorry, but I shouldn't have to pay $99 and own a licensed mac computer running OSX just to develop an app and test it on my phone.
Android has a couple editors now that let you develop an app directly on your device. The Apple DRM isn't even that hard to break, which is such a shame because the only people being hurt by it are legitimate customers and people looking to get into development for it.
Yes, you can jailbreak your iPhone and install unsigned code. You can even set up a compiler toolchain to build your iOS apps, but you shouldn't have to do all of that just to build an app for your phone.