在首次启动时加载弹出窗口,而不是在iOS中加载UIAlertView
从这里的问题开始, 我想加载这个弹出窗口,代码在这里,而不是UIAlertView 有人能告诉我怎么做吗 感谢您在advanced在首次启动时加载弹出窗口,而不是在iOS中加载UIAlertView,ios,popup,modalviewcontroller,Ios,Popup,Modalviewcontroller,从这里的问题开始, 我想加载这个弹出窗口,代码在这里,而不是UIAlertView 有人能告诉我怎么做吗 感谢您在advanced 下载github项目 将MTPopupWindow类(.h和.m文件)拖放到项目中 确保真正复制(而不是引用)它们(必须启用某些复选框) 此弹出窗口依赖于QuartzCore,请确保已将该框架添加到项目中 使用要显示的内容创建info.html文件 应与其他源代码位于同一文件夹中 在视图控制器中,在开始的某个位置添加#导入“MTPopupWindow.h” 替换以下
- 下载github项目
- 将
类(.h和.m文件)拖放到项目中MTPopupWindow
- 确保真正复制(而不是引用)它们(必须启用某些复选框)
- 此弹出窗口依赖于QuartzCore,请确保已将该框架添加到项目中
- 使用要显示的内容创建info.html文件
- 应与其他源代码位于同一文件夹中
- 在视图控制器中,在开始的某个位置添加
#导入“MTPopupWindow.h”
- 替换以下代码
使用此代码UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"hi" message:@"You have open this app first time" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil]; [alert show];
[MTPopupWindow showWindowWithHTMLFile:@"info.html" insideView:self.view];
- 下载github项目
- 将
类(.h和.m文件)拖放到项目中MTPopupWindow
- 确保真正复制(而不是引用)它们(必须启用某些复选框)
- 此弹出窗口依赖于QuartzCore,请确保已将该框架添加到项目中
- 使用要显示的内容创建info.html文件
- 应与其他源代码位于同一文件夹中
- 在视图控制器中,在开始的某个位置添加
#导入“MTPopupWindow.h”
- 替换以下代码
使用此代码UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"hi" message:@"You have open this app first time" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil]; [alert show];
[MTPopupWindow showWindowWithHTMLFile:@"info.html" insideView:self.view];
insideView:self.view
partHi Marc,感谢您的回答!但我有这个错误。我在appdelegate.m btw中添加了第一个启动代码。“在appdelegate类型的对象上找不到属性视图控制器”insideView:self.view
部分