• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[iPhone] Adding an Image to a View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iPhone] Adding an Image to a View


  • Subject: [iPhone] Adding an Image to a View
  • From: Dave <email@hidden>
  • Date: Sun, 18 Apr 2010 13:08:03 +0100

Hi All,

I have two UIView's in Interface Builder in separate .xib files. The first .xib file looks like this:

File's Owner						ViewControllerX
First Responder					UIResponder
MainView						UIView
	ImageView (Image1.jpg)		UIImageView			(Inside UIView)
	Rounded Rect Button			UIButton					(Inside UIView)
	Table View					UITableView				(Inside UIView)
	Rounded Rect Button			UIButton					(Inside UIView)

When I run this and call up the View all works as intended, the Image, Buttons and the Table all display and interact correctly.

The second .xib file looks like this:

File's Owner						ViewControllerY
First Responder					UIResponder
View							UIView
	ImageView (Image1.jpg)		UIImageView			(Inside UIView)
	Table View					UITableView				(Inside UIView)

However, when I run this and call up the View, the Table displays ok, but the image doesn't show up at all!

I've compared all the properties (outlets etc.) and as far as I can see, the two views are hooked up in the same way but it just doesn't display the image. I am using the same source file for the two images (Image1.jpg) and this file is inside the XCode Project. Both views display just fine in Interface Builder.

The second View is called up via a user click on a table view item from the First view and is just pushed onto the Navigation Stack in the normal way.

Is there something else I need to do? I'm trying to get this ready for a demo tomorrow and it would be nice if I could get the image to display!

Thanks in Advance for any help.
All the Best
Dave



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Converting an afp:NSURL to a filesystem path - or - Ya can't get there from here...
  • Next by Date: Re: Strange "autoreleased with no pool in place" message
  • Previous by thread: Re: Any Cocoa Developers in Denver?
  • Next by thread: +Hi+
  • Index(es):
    • Date
    • Thread