Is there a way I can turn personal hotspot on using objective-c? I need to connect to a printer and I don't want the user to go to the settings and then turn it on, rather I want to turn it on in code, print, then turn it back off.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
Sorry, there is no way to do that in the published APIs.
You may want to file an enhancement request at http://bugreport.apple.com/
However, I suspect that your use case is sufficiently esoteric that only a few people will be affected. I mean, you have a wifi-enabled printer but no wifi network? That is probably rare for consumers (but common in businesses).
And in the case of businesses, I don't think that they would let their wifi printers connect to any random hotspot that just happens to show up...