2012-10-13 27 views
-1

我的课是一个UIView的子类,因为我想绘制一些东西。presentModalViewController for UIView

是否有可能在此上下文中使用ModalViewController?

我尝试这样做:

DrawViewController *dc = [[DrawViewController alloc]init]; 

[dc setModalTransitionStyle:UIModalTransitionStylePartialCurl]; 

[self presentModalViewController:dc animated:YES]; 

但它抛出错误...

回答

0

没有,只有UIViewControllers可呈现模态视图控制器,而不是UIViews。

相关问题