added function to test for iOS version running.