Ethan
Ethan

Reputation: 313

User interaction interrupted drawRect, how to solve?

When I drawing a UIVew rect using the drawRect function, if a user interaction happen (such as drop down a UITableView, as the picture below show), the drawing is interrupted, how to solve this problem?

enter image description here

Upvotes: 0

Views: 62

Answers (1)

Ethan
Ethan

Reputation: 313

Problem solved, as KudoCC said, add the NSTimer to a runloop with common mode.

Upvotes: 1

Related Questions