Drawing in the Background
问题 I have an IOS application that needs to update a view in response to either user or external events. The drawing time can be either very short or very long (several seconds) depending upon what is in the view. Right now, the drawing takes place in the drawRect method for the view When the drawing is long and there is a lot of user interaction the app becomes unresponsive. When it needs updating, the entire view needs to be updated. If a change comes in the middle of drawing, it would make