在UIPopoverController中显示视图时,setNeedsDisplay不调用drawRect

时间:2013-07-03 08:45:13

标签: ios cocoa-touch

我有一个视图控制器,在其 viewDidLoad 方法中,我调用了`

  

[self.viewBeDrawn setNeedsDisplay]。

viewBeDrawn是一个UIView ,它覆盖了drawRect方法。 当我将视图控制器设置为初始视图控制器时,直接显示它,可以调用 drawRect方法

但是当我使用

[[UIPopoverController alloc] initWithContentViewController:theController]

要在弹出窗口中显示它,不要调用drawRect方法。 有人帮帮我:(

0 个答案:

没有答案
相关问题