• 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
Re: IKImageView setImage only works once.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IKImageView setImage only works once.


  • Subject: Re: IKImageView setImage only works once.
  • From: Graham Cox <email@hidden>
  • Date: Thu, 15 Jan 2009 12:51:21 +1100


On 15 Jan 2009, at 12:22 pm, James Trankelson wrote:

Well, judging from how often ImageKit questions appear to be answered
here, my expectations aren't high, but here goes anyway...

I'm using an IKImageView and calling setImage to set its contents.

The problem is that setImage only works the first time. Subsequent
calls don't update the image. The first always remains.

Any ideas?


IKImageView doesn't implement -setImage:

It has -setImage:imageProperties: and -setImageWithURL:

Did you mean one of these?

You may need to call -setNeedsDisplay:YES also after setting the image (the docs are silent on this point but other ImageKit classes need this call for some operations - they don't necessarily flag the needed update internally).

any help?

--Graham


_______________________________________________

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


  • Follow-Ups:
    • Re: IKImageView setImage only works once.
      • From: "James Trankelson" <email@hidden>
References: 
 >IKImageView setImage only works once. (From: "James Trankelson" <email@hidden>)

  • Prev by Date: Re: UITableViewController with dynamic data
  • Next by Date: Apply Preferences To Current Window
  • Previous by thread: Re: IKImageView setImage only works once.
  • Next by thread: Re: IKImageView setImage only works once.
  • Index(es):
    • Date
    • Thread