syntax, if #available(iOS 10, *) not work in iOS, Xcode Version 8.1 (8B62)
| Originator: | andy1945jp | ||
| Number: | rdar://29064544 | Date Originated: | 02-Nov-2016 07:10 PM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | |
| Classification: | Reproducible: |
Area:
Xcode
Summary:
syntax if #available(iOS 10, *) not work, Checking API Availability not work
Steps to Reproduce:
log.error(UIDevice.currentDevice().systemVersion)
if #available(iOS 10, *) {
print("iOS 10.0")
} else {
print("hah")
}
Expected Results:
in, iOS 8, print hah
in iOS 10, print `iOS 10.0`
Actual Results:
both print `iOS 10.0` in iOS 8/10
Version:
Xcode, Version 8.1 (8B62), iOS 9.3
Notes:
Configuration:
iPhone 5
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!