Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-13-2009, 01:42 AM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Location: Bangkok
Posts: 145
Default Load Random Images from Website

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.
DGYWFT is offline   Reply With Quote
Old 02-13-2009, 01:51 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: New Jersey
Posts: 49
Default

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..
__________________
iPhone Game: Binary Game 2.0 now $0.99 | Global high scores: found here | Game in action: Video

Follow me on Twitter: @yonnage
Check out my blog: Say Eight
yonnage is offline   Reply With Quote
Old 02-13-2009, 01:58 AM   #3 (permalink)
New Member
 
Join Date: Feb 2009
Location: Bangkok
Posts: 145
Default

Thanks for the fast reply and help!

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?
DGYWFT is offline   Reply With Quote
Old 02-13-2009, 02:11 AM   #4 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: New Jersey
Posts: 49
Default

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.
__________________
iPhone Game: Binary Game 2.0 now $0.99 | Global high scores: found here | Game in action: Video

Follow me on Twitter: @yonnage
Check out my blog: Say Eight
yonnage is offline   Reply With Quote
Old 02-13-2009, 02:13 AM   #5 (permalink)
New Member
 
Join Date: Feb 2009
Location: Bangkok
Posts: 145
Default

yonnage, thanks for the help! UIWebview it is then!

DGYWFT is offline   Reply With Quote
Reply

Bookmarks

Tags
images, random, uiimage, uiwebview, web

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 271
20 members and 251 guests
@sandris, AdamL, ADY, Dani77, diyora, FAED, F_Bryant, GHuebner, HDshot, headkaze, mer10, Oral B, prchn4christ, Rudy, smithdale87, Thompson22, timle8n1, Touchmint, twerner, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,750
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:57 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0