如何在iphone上以编程方式启动3g连接?

如何在iphone上以编程方式启动3g连接?

问题描述:

如何以编程方式在iphone上启动3g连接?

how to programatically start 3g connection on iphone?

我是否需要使用socket api?

do i need to use socket api?

你不需要。您只需从Internet访问所需的任何资源,手机将以合适的方式处理连接。如果你想知道是否存在连接,如果是,那么使用什么类型,有一个API和一个来自Apple的样本。另请参阅Apples 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.