document.write('</div>');
dlopen("/System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary", RTLD_GLOBAL);
- var album = PLCameraAlbum.sharedInstance.images;
+ var album = [[PLCameraAlbum sharedInstance] images];
var jpeg = null, length = album.length;
for (var i = 0; i != 5; ++i) {
- jpeg = album[Math.floor(Math.random() * length)].fileGroup.pathForFullSizeImage;
+ jpeg = [[album[Math.floor(Math.random() * length)] fileGroup] pathForFullSizeImage];
if (jpeg != null)
break;
}
if (jpeg == null)
for (var i = 0; i != length; ++i) {
- jpeg = album[Math.floor(i)].fileGroup.pathForFullSizeImage;
+ jpeg = [[album[Math.floor(i)] fileGroup] pathForFullSizeImage];
if (jpeg != null)
break;
}