Objective-C determine data network type of the iOS device

后端 未结 3 522
一生所求
一生所求 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:13

    Make sure that the Status bar is not hidden in your application. if it's not visible it will always return No wifi or cellular because your code reads the text in the Status bar thats all.

    this is the best way to solve your problem, just make the Status bar not hidden then the application will get the text about the network type.

提交回复
热议问题