开启个人热点?
有没有办法可以使用 Objective-C 打开个人热点?我需要连接到打印机,并且不希望用户转到设置然后将其打开,而是想在代码中打开它,打印,然后将其关闭。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉,在已发布的 API 中无法执行此操作。
您可能想在 http://bugreport.apple.com/ 提交增强请求
但是,我怀疑您的用例非常深奥,只有少数人会受到影响。我的意思是,您有一台支持 wifi 的打印机,但没有 wifi 网络?这对于消费者来说可能很少见(但在企业中很常见)。
就企业而言,我认为他们不会让他们的 WiFi 打印机连接到任何恰好出现的随机热点......
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...