2

我想在单击按钮时打开一个弹出窗口。弹出窗口应包含运行时的图像或视图。请帮我。关于阿努帕姆

4

1 回答 1

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];
于 2013-04-05T10:52:12.990 回答