Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何打开包含UIview或image的弹出窗口_Ios_Objective C_Xcode_Ipad - Fatal编程技术网

Ios 如何打开包含UIview或image的弹出窗口

Ios 如何打开包含UIview或image的弹出窗口,ios,objective-c,xcode,ipad,Ios,Objective C,Xcode,Ipad,我想在点击按钮时打开一个弹出窗口。弹出窗口应该包含运行时的图像或视图。 请帮帮我。 当做 anupam您需要提供更多的上下文…什么样的窗口?它应该如何显示?看一下如何呈现模式视图。在iOS 7 SDK上不起作用,对吗?对。请参考iOS 7的这些解决方案 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Popup Title" mes

我想在点击按钮时打开一个弹出窗口。弹出窗口应该包含运行时的图像或视图。 请帮帮我。 当做
anupam

您需要提供更多的上下文…什么样的窗口?它应该如何显示?看一下如何呈现模式视图。在iOS 7 SDK上不起作用,对吗?对。请参考iOS 7的这些解决方案
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Popup Title" 
                                                message:@"This is pop up window/ Alert" 
                                               delegate:nil 
                                      cancelButtonTitle:@"OK"
                                      otherButtonTitles:nil];

UIImageView *tempImageView=[[UIImageView alloc]initWithFrame:CGRectMake(20,20,50,50)];

tempImageView.image=[UIImage imageNamed:@"abcd.png"];

[alert addSubview:tempImageView];

[alert show];