Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Toggle iPhone tethering by code

I live in Canada, so am fortunate that I can tether. One issue is that to toggle tethering, you need to drill down four screens in Settings, which is just a big hassle.

A Google search returned nothing, so I was wondering if anyone here knew the code to turn on/off tethering?

I know there's a toggle for SBSettings, but I do not have a jailbroken phone, I just want to create an app I build onto my phone and have an icon for quickly toggling it.

Thanks

like image 846
runmad Avatar asked May 22 '26 21:05

runmad


1 Answers

You cannot alter phone settings from within an application using any APIs allowed by the iPhone SDK. As you point out - there is an SBSettings toggle - which relies on a Private API (which you agree not to use when you get the iPhone SDK from Apple, incidentally).

like image 64
Lee Avatar answered May 24 '26 10:05

Lee