在首次启动时加载弹出窗口,而不是在iOS中加载UIAlertView

在首次启动时加载弹出窗口,而不是在iOS中加载UIAlertView,ios,popup,modalviewcontroller,Ios,Popup,Modalviewcontroller,从这里的问题开始, 我想加载这个弹出窗口,代码在这里,而不是UIAlertView 有人能告诉我怎么做吗 感谢您在advanced 下载github项目 将MTPopupWindow类(.h和.m文件)拖放到项目中 确保真正复制(而不是引用)它们(必须启用某些复选框) 此弹出窗口依赖于QuartzCore,请确保已将该框架添加到项目中 使用要显示的内容创建info.html文件 应与其他源代码位于同一文件夹中 在视图控制器中,在开始的某个位置添加#导入“MTPopupWindow.h” 替换以下

从这里的问题开始,

我想加载这个弹出窗口,代码在这里,而不是UIAlertView

有人能告诉我怎么做吗

感谢您在advanced

  • 下载github项目
  • MTPopupWindow
    类(.h和.m文件)拖放到项目中
  • 确保真正复制(而不是引用)它们(必须启用某些复选框)
  • 此弹出窗口依赖于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项目
      • MTPopupWindow
        类(.h和.m文件)拖放到项目中
      • 确保真正复制(而不是引用)它们(必须启用某些复选框)
      • 此弹出窗口依赖于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页面上有代码。这不管用吗?嗨,Marc,github上的代码工作正常,但我不想在应用程序启动时显示UIAlertView我想显示MTPopupWindow,但我不确定如何执行此操作。如果(firstTime.length==0){UIAlertView*alert=[[UIAlertView alloc]initWithTitle:@“hi”消息:@“您第一次打开了此应用程序”委托:self-cancelButtonTitle:@“ok”otherButtonTitles:nil];[alert show];[self-firstTime];}这是它调用UIAlertView的位,我需要知道如何更改此项以加载MTPopupWindow。谢谢我不明白。。github页面上有代码。这不管用吗?嗨,Marc,github上的代码工作正常,但我不想在应用程序启动时显示UIAlertView我想显示MTPopupWindow,但我不确定如何执行此操作。如果(firstTime.length==0){UIAlertView*alert=[[UIAlertView alloc]initWithTitle:@“hi”消息:@“您第一次打开了此应用程序”委托:self-cancelButtonTitle:@“ok”otherButtonTitles:nil];[alert show];[self-firstTime];}这是它调用UIAlertView的位,我需要知道如何更改此项以加载MTPopupWindow。谢谢嗨,马克,谢谢你的回答!但我有这个错误。我在appdelegate.m btw中添加了第一个启动代码。“在appdelegate类型的对象上找不到属性视图控制器”insideView:self.viewpartHi Marc,感谢您的回答!但我有这个错误。我在appdelegate.m btw中添加了第一个启动代码。“在appdelegate类型的对象上找不到属性视图控制器”insideView:self.view部分