This was fairly painless apart from the orientation stuff changing somewhat in iOS 6. The main problem being that preventDefault() is now depreciated as iOS 6 handles things in a different way.
There's some useful stuff here about it:
http://forums.adobe.com/message/4735407