如何以编程方式在iPhone上启动3G连接?
问题描述:
如何以编程方式在iPhone上启动3g连接?
how to programmatically start 3g connection on iphone?
我需要使用套接字API吗?
do I need to use socket api?
答
您不需要.您只需从Internet访问所需的任何资源,电话便会以合适的方式处理连接.如果您想知道是否存在连接,以及是否使用了哪种连接,则可以使用API和 iPhone网络访问:最佳做法.
You don't need to. You just access whatever resource you need from the Internet, and the phone will handle connecting in a suitable manner. If you want to know whether there is a connection at all, and if so what kind is being used, there is an API and a sample from Apple. Also see Apples iPhone Network Access: Best Practices.