弹出窗口无法关闭(IBAction不起作用)

时间:2018-07-18 11:54:10

标签: objective-c xcode popup xib

我使用在这里找到的弹出式系统:intersection

并按照指南逐步操作后,除关闭按钮外,其他所有功能均可用。我试图以各种方式链接它,但没有任何效果。

有人知道我做错了吗?

这是我的代码:

PopUpController.h:

SqlCommand cmd_check2 = new SqlCommand();
        cmd_check2.CommandText = @"SELECT
                                  [title_news]
                                  FROM [website_DB].[dbo].[long_news_T] where id = 1";

        //cmd_check.Parameters.AddWithValue("@e_mail", txtUserName.Text);


        DataTable df2 = WebTbi_V1._1.func.general.GetData(cmd_check2, Label1, "website");

        foreach (DataRow row2 in df2.Rows)
        {
            //Console.WriteLine("- - - Row - - -");
            foreach (var item_1 in row2.ItemArray)
            {

               my for code ????


            }

            test.InnerHtml = html;
        }

PopUpController.m:

#import <UIKit/UIKit.h>
//#import <QuartzCore/QuartzCore.h>
#import "AppDelegate.h"


@interface PopUpViewController : UIViewController


@property (weak, nonatomic) IBOutlet UIView *popUpView;

- (void)showInView:(UIView *)aView animated:(BOOL)animated;
- (IBAction)closePopup:(id)sender;


@end

注意:单击关闭按钮时,我什至没有在控制台上关闭NSLog

这是我的.xib文件的屏幕截图:

https://blog.typpz.com/2013/12/09/ios-sdk-create-a-pop-up-window/

感谢您的回复。

0 个答案:

没有答案
相关问题