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

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