How to Update custom UIView with async method?

xxfxxf USMember

My custom UIView hava the data in webservice.
The custom UIView overide the UIView's Draw( rect) to display my data.
When I get or update the data from webservice. How can I update the UIView? I changed the data, but the UIView did not change.
Is there any method can re-draw the UIView?

Tagged:

Best Answer

  • MihaMarkicMihaMarkic SI ✭✭✭✭
    Accepted Answer

    I think UIView.SetNeedsDisplay() method is what you are looking for.

Answers

  • MihaMarkicMihaMarkic SI ✭✭✭✭
    Accepted Answer

    I think UIView.SetNeedsDisplay() method is what you are looking for.

  • xxfxxf USMember

    Thank u. It works.

Sign In or Register to comment.