How to add iOS platform specific codes and libs to my project?
-
Well, the title describes it all I think.
As for an example, how can I add "UIImagePickerController.h" to my project. -
Hi,
The same way you do it for framework on OS X. You have to use Objective-C/C++ for your code and the ios scope in your pro/pri file.
-
Right, but can you please help me with a more specific example, like what should I exactly add to my *.pro file?
I know that for OS X you need to add something like this:
@
LIBS += -framework
@So according to your post, is it something like this or what?!?!
@
LIBS += -ios
@Thanks
-
No, the
@LIBS += framework NameOfTheFrameWork@
Is still the same.
What you might need is
@
ios {
OBJECTIVE_SOURCES += mycode.mm
}
@
For you iOS only code if you have a common code base for several platforms -
Still no luck.
Is there any examples for Objective-C++ in Qt?
For iOs maybe??? -
You can have a look at the qtmacextras code to see how to do it