Is it possible to access the camera inside an iAd?
I readed that the language to create iAds is JS so I believe that it can’t be accesed. But there is not so many docs about iAd.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, there is a way of doing it. I advise you to download the iAd Producer. Once you install it, there is an “extra” directory in the .dmg disk. There are some useful examples, one of them is the access of the camera and images manipulation.
https://developer.apple.com/iad/iadproducer/
In any case, this is a small snippet for a button that will trigger the camera and will show the taken picture in an image view:
var image = this.viewController.outlets.image;
this.onViewTouchUpInside = function (event) {
};
if (window.ADCamera) {
}
Good luck!