iPhone SDK: How to trigger drawRect on UIView subclass after orientation change?

前端 未结 3 1316
遥遥无期
遥遥无期 2020-12-10 01:59

I am subclassing a UIView and overwrite the drawRect method. I\'m noticing that the view\'s drawrect is only being called when the view first loads. After that it is never c

3条回答
  •  鱼传尺愫
    2020-12-10 02:27

    This was a bug related to something completely different. setNeedsDisplay does indeed cause drawRect to be called.

提交回复
热议问题