• 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: Improving drawing of UIView with many many Subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improving drawing of UIView with many many Subviews


  • Subject: Re: Improving drawing of UIView with many many Subviews
  • From: Gustavo Pizano <email@hidden>
  • Date: Tue, 21 Dec 2010 18:26:40 +0100

Aha,,, I thought using UIView instead would be better, but I guess I was wrong..
I will then make the modifications then and see..


Thanks for the help I will keep you informed..

G.
On Dec 21, 2010, at 5:57 PM, David Duncan wrote:

> Why not just use a UIImageView instead of implementing a custom UIView subclass to do this? If this is all you are doing a UIImageView is very often the superior choice.
>
> On Dec 21, 2010, at 6:46 AM, Gustavo Adolfo Pizano wrote:
>
>> and this is the drawrect method of the BCItemView
>>
>> // Only override drawRect: if you perform custom drawing.
>> // An empty implementation adversely affects performance during animation.
>> - (void)drawRect:(CGRect)rect {
>>   // Drawing code.
>>
>> 	CGContextRef context = UIGraphicsGetCurrentContext();
>> 	CGContextSaveGState(context);
>> 	CGContextTranslateCTM(context, 0, CGImageGetHeight(bc_itemImage));
>> 	CGContextScaleCTM(context, 1.0, -1.0);
>> 	CGContextDrawImage(context, self.bounds, bc_itemImage);
>> 	CGContextRestoreGState(context);
>>
>> }
>
> --
> David Duncan
>

_______________________________________________

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: 
 >Improving drawing of UIView with many many Subviews (From: Gustavo Adolfo Pizano <email@hidden>)
 >Re: Improving drawing of UIView with many many Subviews (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Waiting for UIWebView with Dispatch Semaphores
  • Next by Date: Re: Recovering from a merge conflict
  • Previous by thread: Re: Improving drawing of UIView with many many Subviews
  • Next by thread: Re: Improving drawing of UIView with many many Subviews
  • Index(es):
    • Date
    • Thread