Well, if you have the iOS 5 beta, that means you are a developer. I haven't tried this, as I haven't played with the beta or anything, but I would assume based on this article that in the app you are programming you create a text window with the keyboard set to Dvorak.
Apart from the fact that Dvorak isn't in the list on keyboards in Beta 5