setneedsdisplayinrect

CATiledLayer and setNeedsDisplayInRect update problems

I have a view where I add a CATiledLayer as a sublayer. The view is inserted in a scroll view. When specifically requesting an update by sending setNeedsDisplayInRect: to the sublayer, my application hangs. Anyone more knowledgable on the why? EDIT: If I have a UIView explicitly using a CATiledLayer as a backing layer, calling the UI...

How do you update a secondary view?

Perhaps there's a better way to set this up so I'm open to suggestions. But here's what I'm doing. I have a main UIView. On top of that I have a UIImageView and another UIView. When the UIImageView changes, I want to change the second UIView. So I have a class for it and the IB object's type is set to the class. In the .m of that class...

Update a portion UIView

Hi; I'm using -setNeedsDisplayinRect to update only a part of my UIView. However, all of my drawing done previously to calling this method is erased. Here is my code in the UIView subclass: -(void)drawRect:(CGRect)rect{ CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetRGBFillColor(context, r, g, b, 1); ...

Why is drawAtPoint Creating Duplicate Images in my tablecell's contentview?

I have a view with a custom slider. We are using a subclass of TableViewController that is generating instances of UITableViewCell. Inside each tableViewCell we add our custom slider (a UI View) as a subview. In here we have a view that serves as the slider's control knob. It is just a subclass of UIView with a gesture recognizer. The dr...