Redrawing a view in ios

前端 未结 3 1521
你的背包
你的背包 2021-01-19 03:46

Is it possible to redraw the whole view.

I need it to complete my language settings. The problem is that the language only changes after the views there drawn again

3条回答
  •  难免孤独
    2021-01-19 04:17

    Just call setNeedsDisplay.. It will resolve the problem. setNeedsDisplay actually calls the drawRect function in the UIView class by passing the frame of the view as the rectangular parameter. Hope that helps....

提交回复
热议问题