In iOS, how to use code to turn on the system's hotspot?
iOS Create HotSpot by code
I presume you’re talking about the Personal Hotspot feature here. If so, there’s no supported way to turn that on and off programmatically.
For reference, you can find a list of Wi-Fi APIs that are available on iOS in TN3111 iOS Wi-Fi API overview.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"