-
All replies
-
Helpful answers
-
Aug 27, 2015 10:09 AM in response to SamsonWasteCreativeby msephton,You do it like this... I put this code on a button activation.
var imageContainer = this.viewController.outlets.imageContainer; imageContainer.setImage(iAd.Image.imageForURL('assets/imageA.png'));imageContainer = an image object/container that has been added to the page.
assets/imageA.png = an image that has been added to the assets panel.
This method was easy enough to find:
- opening iAd Producer
- Help > Code Documentation
- search for "image class"
- choose iAd.Image Class
- read Creating Images > imageForURL
Let me know how you get on!
matt