As you probably know, the happy owners of iPod Touch are in no hurry to upgrade their toys to the latest version. Role religion does not allow. Tolley because the update is paid. In general, the reason is not so important. For us programmers, this translates into the requirements of the form “I want to, by putting the application on 3.0, I could choose a song and 2.0 so that it could be launched.” How this can be done will be described in this short article. This is done in 2 steps. 1) Set the deployment target in the project settings to the minimum version of the OS on which our application will run:
After this, our application will “weakly” (weak) depend on libraries that are not in 2.2.1, but which we use from 3.0:
2) Now in those places where new chips are used, we do the following check: