Launching the iPhone app with feature 3.0 on device 2.2.1

I was asked to add the function 3.0 (Media Picker) to the application.

But this application should continue to work on device 2.2.1. (With function disabled)

How can I compile this so that it runs on 2.2.1 without getting a compiler error to enable function 3.0?

Following the instructions in the MailComposer example, I set my target parameter to 2.2.1, and the base SDK to 3.1.2.

I looked at the loose coupling, but this is obviously just for the linker stage and does nothing about compiler errors.

+3
source share
2 answers

, C extern (Objective-C , ). , .

+3

, , , , , 3.0 SDK , , . - , :

MyCopiedClass object = [[NSClassFromString(@"MyCopiedClass") alloc] init];
0

Source: https://habr.com/ru/post/1728382/


All Articles