Objective-C determine data network type of the iOS device

后端 未结 3 528
一生所求
一生所求 2020-12-23 10:24

Im on an application that receive data from server, the problem is when user connect to cellular data (Not 3G or WIFI), it take ages t

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-23 11:07

    case 1, with the NSLog(@"2G"); is the case where the phone is on regular cellular data, not 3G, not 4G, and not WiFi.

    What you should do is insert code below the NSLog for 2G to prevent the data transfer.

提交回复
热议问题