Calling iOS functions from Qt

Calling iOS functions is quite different from the one we did for Android. The first difference is the programming language for iOS, which is Objective C++ (with the "plus plus" sign) rather than Java. In order for us to integrate iOS functions in our Qt project, we cannot use the usual Objective C language for the class that will be integrated into our Qt project. Instead, we use the Objective C++ language, which is compatible with C++ under macOS and iOS environments. Secondly, there is no iOS extras module like you would have with Android. This is because Objective C++ is compatible with C++ and hence we can just create a trampoline function in Objective C++ and call it directly, which, in turn, will trigger ...

Get Application Development with Qt Creator now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.