How to check iOS version in that device using Myapp iOS swift
Solution:
Now a days apple had a method that will closure your viewcontroller or method that will execute based on the os version in the device.
@available(iOS 10.0, *)
//you can code here
or you can code like below
Now a days apple had a method that will closure your viewcontroller or method that will execute based on the os version in the device.
@available(iOS 10.0, *)
//you can code here
@end
or you can code like below
let dev = UIDevice.current.systemVersion.hashValue
Comments
Post a Comment