在Info.plist中添加NSAppTransportSecurity
類型Dictionary
。
在NSAppTransportSecurity
下添加NSAllowsArbitraryLoads
類型Boolean
,值設爲YES
- (UIStatusBarStyle)preferredStatusBarStyle { return UIStatusBarStyleLightContent; }
在Info.plist中添加NSAppTransportSecurity
類型Dictionary
。
在NSAppTransportSecurity
下添加NSAllowsArbitraryLoads
類型Boolean
,值設爲YES
- (UIStatusBarStyle)preferredStatusBarStyle { return UIStatusBarStyleLightContent; }