Implementing setLocation for iOS

Fixes #602