• 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: Drawing an arc fill inside an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing an arc fill inside an image


  • Subject: Re: Drawing an arc fill inside an image
  • From: Steve Christensen <email@hidden>
  • Date: Thu, 26 May 2011 11:45:24 -0700

Custom view that sits on top of a UIImageView? Implement -drawRect: and a progress property and you're done.


On May 26, 2011, at 11:21 AM, Alex Kac wrote:

> I'm not sure what the best way to tackle this is... so I thought I'd ask here. I have an image with a circular button inside of it. I'd like to dynamically fill this button in an arc to show "progress" much like how when you are on iTunes Store on an iOS and its playing the preview its animating filling the circle in a sweep of an arc. Mine doesn't need to animate however.
>
> So I have the image, and I suppose I can draw that image to a context and then draw an arc on that image, and then make another image out of it. That seems like it would get slow if I needed to do that a lot. Any suggestions? I also wouldn't mind any links that might show similar code. This is for iOS. I tried searching Google, but my GoogleFu is not showing anything, probably due to me not using the right terms.

_______________________________________________

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

References: 
 >Drawing an arc fill inside an image (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: How to implement "while there are objects in the array - run runloop" idea?
  • Next by Date: Re: Best way to handle iOS device rotation
  • Previous by thread: Re: Drawing an arc fill inside an image
  • Next by thread: Best way to handle iOS device rotation
  • Index(es):
    • Date
    • Thread