[SOLVED] Accessing iOS Photo Folder
-
You cannot directly using the Qt API, you have to use a iOS native API:
You can easily mix C++ and objective-C code in a Qt project simply adding a '.mm' source file.
In .pro file:
@
OBJECTIVE_SOURCE += mysource.mm
@and inside the .mm you can mix C++ with objective-C code like that:
@
void MyQtObjectClass::someMethod() {
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
... etc
}}
@
-
On iOS you never get a direct access of things outside your app.
There is always an API that pass the control to iOS system and return to you with a result from the user.
In the case of UIImagePickerController, when you launch it, it will appear to the user a new screen (under the iOS control) where the user navigate and choose the picture and after that your app get only the image user chosen.
This is what I know.For examples, try to look in the iOS documentation and tutorial there are a lot of examples.