IPhone : Function running faster on iOS simulator than on iPhone

on Wednesday, April 8, 2015

I am having a strange problem. I am using a 3rd party web API, which is supposed to return a JSON object, that wasn't set up correctly. As a result, I have to reformat the "JSON" in order for Swift to recognize it as a JSON object. On the iOS simulator, the process of reformatting the JSON string takes roughly 2 seconds, but when I test it on my physical iPhone, it takes a whopping 25 seconds. Why is this? How can I fix it (make the JSON formatter faster on the physical device)?


0 comments:

Post a Comment