1

セルラー ネットワークに接続する方法と、どのクラスの iOS を使用すればよいかを理解しようとしています。

また、iOS 7 はバックグラウンドでデータをチェックするアプリをサポートしていますか? 特定の場所にいるかどうかを確認するのと似ています。

ありがとう!

4

1 に答える 1

1

Your phone will connect to a cellular network when you make any networking (internet) calls in your code. It will also connect to the internet through wifi, it doesn't care what type of connection you have, what you are trying to do is get info from the internet.

To do this, you must use some sort of networking library. The standard Apple-supported library is called NSURLSession and came out (an improvement upon the older NSURLConnection) with iOS7 and it works great. Suffer through the reading and you'll be rewarded - Link to Apple Docs

There's also a 3rd party library called AFNetworking created by Mattt (yes, 3 t's) that's awesome and probably the most used 3rd party iOS library there is. Highly, highly recommend looking into this and giving some consideration when wanting to talk to the internet through an app. - Link to AFNetworking

于 2014-10-17T17:05:03.980 に答える