Common method to retrieve the iOS device being used. (Updated for iPhone 5c and iPhone 5s)