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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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-17-2011, 09:27 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 7
noahGolm is on a distinguished road
Default UIScrollView not displaying image

Hi! I'm developing my own personal xkcd comic app (I love that comic). I've gotten to the point where I can get the image and display it on a UIImageView. However, when I try and change the code slightly to display a UIScrollView, nothing is there! I've added the project file as an attachment, if anyone can help me here! Don't mind the JSON parsing, because none of that seems to be the problem. The project has everything related to the UIScrollView commented out, just to show that it actually works without that part. If you remove the comments and change the UIImageView in IB to an UIScrollView (and make the proper connection), the image is not appearing! Any suggestions?
noahGolm is offline   Reply With Quote
Old 02-17-2011, 09:30 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

You can't just change a UIImageView for a UIScrollView. You need an imageview which will be added as a subview of the scroll view.
baja_yu is offline   Reply With Quote
Old 02-17-2011, 09:34 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 7
noahGolm is on a distinguished road
Default

Oops! The project can't be uploaded here. Here's another link (posted this problem in macrumors a while ago, with that project). Look at the second attachment, labeled "xkcdApp."

UIScrollView not showing the image! - MacRumors Forums
noahGolm is offline   Reply With Quote
Old 02-17-2011, 09:35 PM   #4 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 7
noahGolm is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
You can't just change a UIImageView for a UIScrollView. You need an imageview which will be added as a subview of the scroll view.
Actually, I do add the UIImageView (which previously displayed the image) as a subview of the UIScrollView. Nothing appears!

Last edited by noahGolm; 02-17-2011 at 09:46 PM.
noahGolm is offline   Reply With Quote
Reply

Bookmarks

Tags
no image, uiimageview and uiimage, uiscrollview, xkcd

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: 368
13 members and 355 guests
cpsclicker, dre, Error404, Gaz, gmarro, jeroenkeij, Kirkout, Music Man, PavelMik, teebee74, whitey99, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,666
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cpsclicker
Powered by vBadvanced CMPS v3.1.0

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