Hello world!
I have just recently jailbroken my iPhone and I am wanting to start making some backgrounds for themes. From what I understand the iPhone uses carbon and cocoa which is like objective C, but the themes also use xhtml. I do not know what other languages can be used when coding the themes (some sources sited ajax, java, and php...but I have been unable to get php working on my phone, and I suspect the ajax and java portions might be planned for the future, or not implemented yet). Does anyone have some suggested sites that will verify what languages I can use when coding themes?
In the theme that I am throwing together right now I am trying to have a directory relative to the theme that is hard coded in, and I want to find all files that have a .jpg extension within that directory or any subdirectory, then I want those files output inside of a <img> tag...I know in php that would look something like this:
Code:
<body style="color: black">
<?php
$background_D = "../../Wallpaper/*/";
$backgrounds = glob("" . $background_D . "*.jpg");
foreach($backgrounds as $image){
echo "<img src='$image' /> ";
}
?>
any ideas how to bridge this to a language the iPhone supports?