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];