Very nice! What iOS app are you using? I didn't realize this kind of functionality would be allowed.
The iOS app I “wrote” is up on GitHub: https://github.com/nneonneo/socks5-ios. It’s really barebones; I knocked it together in less than an hour since I rather desperately wanted a good internet connection at the time :)
But, hey, if you want to see some random person's SOCKS code bodged up with some extra hacky bits from me, here you go: https://gist.github.com/nneonneo/fc770965944a4640e2aef34e0f8...
If you want to use PAC, set the "automatic proxy URL" to http://172.20.10.1/wpad.dat when using this as a tethering proxy (yes, iOS lets you bind port 80 without root - your app just needs to be running).