iOS support implemented by Chris and tested by myself. Spacing issues re...

...solved.

Signed-off-by: Gary Riches <gary@bouncingball.mobi>