解決辦法:
-
在Info.plist中添加
NSAppTransportSecurity
類型Dictionary
。 -
在
NSAppTransportSecurity
下添加NSAllowsArbitraryLoads
類型Boolean
,值設爲YES
在Info.plist中添加NSAppTransportSecurity
類型Dictionary
。
在NSAppTransportSecurity
下添加NSAllowsArbitraryLoads
類型Boolean
,值設爲YES