Updated location code for iOS 8.
- Also fixed a call from "integerValue" to "intValue"