iOS 6 and 7 methods, and prevent range.location < 0