【发布时间】:2013-04-10 07:22:05
【问题描述】:
我想在UIView 上拨打presentModalViewController。
我想创建UIView 的一个模型类子类并创建3 个带有动作的按钮,然后将其添加到UIView。我写了一个关于发送消息的小代码。我打电话给presentModalViewController,然后将该视图添加到firstViewController。
有可能吗?
我在AppDelegate->application:didReceiveLocalNotification写了代码
收到通知后,此视图将添加到MainViewController
NotifViewModel *remainderAlert = [[NotifViewModel alloc]initWithFrame:CGRectMake(40, 60, 250, 300)];
[remainderAlert showRemainderAlert1];
[self.viewController.view addSubview:remainderAlert];
【问题讨论】:
标签: ios uiview uiviewcontroller uinavigationcontroller