For Android there's a tool called overrideLibrary that allows you to use libraries that require a higher target than your project. Is there a way to do the same for iOS?
In iOS, the same behavior can be achieved by using #available
,
if #available(iOS 9, *) {
// use iOS 9 APIs
} else {
// use less than iOS 9 APIs
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.