pixelrevision
pixelrevision

Reputation: 374

BitmapContext on iphone

I am repeatedly drawing to an offscreen bitmap context non-destructivly on iphone. Right now the only way I have figured out to get it to display is to update the drawRect of my UIView with the contents of the context. This runs really slow and seems unnecessary. Does any one know of a way to have the bitmap update on the screen without force refreshing the whole thing?

Upvotes: 0

Views: 157

Answers (1)

Mihir Mehta
Mihir Mehta

Reputation: 13833

Call UIView's this method for updation

- (void)setNeedsDisplayInRect:(CGRect)invalidRect

invalidRect is Rectangle part that has been changed...

Upvotes: 1

Related Questions