问题
while m calling my api got this error in ios9 but it is working fine in ios8 The resource could not be loaded because the App Transport Security policy requires the use of a secure connection ios9
回答1:
You need to add one flag in plist. See more at https://forums.developer.apple.com/thread/3544
回答2:
I have solved it with adding some key in info.plist. The steps I followed are:
Opened my Projects
info.plistfileAdded a Key called
NSAppTransportSecurityas aDictionary.- Added a Subkey called
NSAllowsArbitraryLoadsasBooleanand set its value toYESas like following image.
Clean the Project and Now Everything is Running fine as like before.
Ref Link:
https://stackoverflow.com/a/32631185/2905967
https://stackoverflow.com/a/32609970
来源:https://stackoverflow.com/questions/32069393/the-resource-could-not-be-loaded-is-ios9