Adds iOS6.0 support.

- Adds necessary code.
- Fixes width of buttons in UI for iOS.