Unable to show photos in Assignment 4

15 views
Skip to first unread message

stephen

unread,
Feb 28, 2012, 4:13:44 PM2/28/12
to iPhone Application Development Auditors
This post may be related to the posts:
http://groups.google.com/group/iphone-appdev-auditors/browse_thread/thread/412d59f12c56eb2e#
and
http://groups.google.com/group/iphone-appdev-auditors/browse_thread/thread/3b0c369c07e8fb97#

but I can not be sure so I am asking separately.

I have the table views letting me show and pick a Top Place, and then
show and pick some recent photos from a selected place, but when I go
to show an imageView, all I get is a blank screen in the simulator and
on my devices.

I have set break points, and things seem to be progressing the way I
want it to, but with the blank screen, I can not even tell if the
thing is trying to work correctly.

Here is a simplified version of my code showing the key parts and I
think I am doing it all correctly, but when it gets to
FT10PhotoViewController.m, nothing seems to happen...
https://gist.github.com/1935153

Am I missing something on how to show images???

Duane Bender

unread,
Feb 29, 2012, 3:16:50 PM2/29/12
to iphone-appd...@googlegroups.com
The code you posted on github doesn't show how you get the image data into the image @property in your PhotoViewController. You need to show the code from your FT10PhotosTableViewController that loads that property when a table cell is selected.

Duane

stephen

unread,
Feb 29, 2012, 9:38:18 PM2/29/12
to iPhone Application Development Auditors
strange. I pasted that batch in... looks like it is missing two files,
will add it tomorrow morning.

On Feb 29, 3:16 pm, Duane Bender <duane.ben...@gmail.com> wrote:
> The code you posted on github doesn't show how you get the image data into
> the image @property in your PhotoViewController. You need to show the code
> from your FT10PhotosTableViewController that loads that property when a
> table cell is selected.
>
> Duane
>
>
>
>
>
>
>
> On Tuesday, February 28, 2012 3:13:44 PM UTC-6, stephen wrote:
>
> > This post may be related to the posts:
>
> >http://groups.google.com/group/iphone-appdev-auditors/browse_thread/t...
> > and
>
> >http://groups.google.com/group/iphone-appdev-auditors/browse_thread/t...

stephen

unread,
Mar 1, 2012, 10:17:47 AM3/1/12
to iPhone Application Development Auditors
SON OF A BBBBBBBBBBBBBBBBB!!!!!!

Found the error...

The default UIViewController template was inserting a:
- (void)loadView {
// If you create your views manually, you MUST override this
method and use it to create your views.
// If you use Interface Builder to create your views, then you
must NOT override this method.
}

block that was causing the trouble. Since it was not default commented
out, it was overriding and messing up the flow. :-/

Removed that block and it works just great now.
Reply all
Reply to author
Forward
0 new messages