• 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: "James Trankelson" <email@hidden>
  • Date: Thu, 15 Jan 2009 04:07:22 +0100

Ha!

I actually tried both of your suggestions, but without avail.

It turns out that calling [setImage: imageProperties:] is happiest to
be called from the main thread. Calling it by using
performSelectorOnMainThread: works.

jt

On Thu, Jan 15, 2009 at 2:51 AM, Graham Cox <email@hidden> wrote:
>
> 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: Graham Cox <email@hidden>
References: 
 >IKImageView setImage only works once. (From: "James Trankelson" <email@hidden>)
 >Re: IKImageView setImage only works once. (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Report writer for Cocoa?
  • Next by Date: Localized resources not loading from external frameworks
  • Previous by thread: Re: IKImageView setImage only works once.
  • Next by thread: Re: IKImageView setImage only works once.
  • Index(es):
    • Date
    • Thread