Archive for the ‘ iOS ’ Category

StageWebViewBridge Update

I have updated the StageWebViewBridge class to fix some errors as the 5.0. doNotBackup directive problem…

See more a the projects page at http://code.google.com/p/stagewebviewbridge/

How to enable iTunes FileSharing on AIR for iOS Devices

I was searching the net to find a way to enable FileSharing with itunes on my AIR for IOS app.

After some research, this is the simple way it can be done:

  • Edit your application descriptor xml file
  • In the InfoAdditions section add the next two lines of code
  • Recompile you project and update the app via iTunes
  • After sync with iTunes, your app now can share files within the app Documents directory
1
2
<key>UIFileSharingEnabled</key>
<true/>

Enjoy!!

StageWebViewBridge. Updated. Automatic cache creation.

StageWebViewBridge class was upgraded with new features for managing files in the cache.

With the new system it is possible to forget if a cached file is updated, the system does everything for us and finally we get 2 output directories. These 2 directories are the directories we must include in our final package release.

The new methods and properties:

1
2
// sets Debug mode on/off
StageWebViewBridge.DEBUGMODE = true/false;
1
2
3
4
5
6
// sets the default dir to 'htmlFiles'
StageWebViewBridge.setRootFolder('htmlFiles');

// this will create 2 new dirs
app:/htmlFilesCache
app:/htmlFilesSource
1
2
3
4
5
// Change the extensions of the files to parse.
// Default extensions are ["html","htm","css","js"]

// now limit the files to be html or js, and left intact the css and htm files
StageWebViewBridge.setSourceFileExtensions(['html','js']);

More info in the official project page: stagewebviewbridge