Do you need to determine the system version number when iOS imports the header file library?

problem description

do you need to judge the system version number when introducing the header file library?
our app supports iOS8.0 at a minimum. I now need to use a library that is only available in iOS9.0. In this case, do you need to judge the system version when you use the import library?
(the relevant code has been versioned)

Apr.07,2021
The

project is online, so I'll answer it myself. For the header file introduced by
, if you only consider the system version, you don't need to judge, just introduce it directly, and there will be no problem. You only need to add judgment to the specific code logic

Menu