2013-04-05 30 views
2

我想打开一个弹出窗口,单击按钮。弹出窗口应包含图像或在运行时查看。 请帮助我。 问候 阿努邦如何打开弹出窗口包含UIview或图像

+0

你需要给更多的背景下...什么样的窗口?它应该如何显示?看看呈现一种模态观点。 – Petar 2013-04-05 10:53:22

回答

0
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]; 
+1

不适用于iOS 7 SDK吗? – 2013-11-16 13:11:54

+1

right ..请参考这些解决方案为ios 7 http://stackoverflow.com/questions/18729220/uialertview-addsubview-in-ios7 – BhushanVU 2013-11-18 05:22:19

相关问题