Or even more simply just use a UIImageView.

On May 15, 2013, at 9:36 AM, Kyle Sluder <[email protected]> wrote:

> Can you just set the CGImage as the .contents of the view's layer?
> 
> --Kyle Sluder
> 
> On May 15, 2013, at 3:42 AM, li shunnian <[email protected]> wrote:
> 
>> Hi all,
>> I implement drawRect of a subclass of UIView. I found view will update whole 
>> bounds when I switch from another app to myapp. Because I draw a cgimage on 
>> the view's bounds, it cost lots of time. Are there some properties of view 
>> or layer to make the update rect not to be whole bounds?
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
> 
> This email sent to [email protected]

--
David Duncan


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to