Hello, I am complete newbie to Cocoa and iPhone development, so bare with me if you can. I come from a PHP/Javascript background, and will develop an app that can load random images from my website. I am curious, is the best way to achieve this is just develop the code in PHP, and use a UIWebview to load this page or can I develop this using a normal UIImageView and pass the info via my website?
Any help / advice would be greatly appreciated and look forward to joining in on this forum's discussions.
The easiest by far would be just have a PHP script that returns a random image, and use a UIWebView that points to that script. But you can do it either way, depending on what you want to do with the image(s) you get back..
I don't plan to do anything with the images when they are loaded, its more of a load random images full screen thing. For example: app loads and random image loads. Hit a button, another random image loads. Super simple really.
So I assume if you ever just intend to search a site/online for images, with no real need to save them locally to the iphone, just use UIWebview?
Yes.. but then again this would be only as simple as described above if you were hitting a PHP script you controlled, that just displayed a random image.
If you wanted the iPhone to do the job of grabbing a random image from a random site(without any PHP script you controlled), then it would be a lot more work to develop for the iPhone.