我想在点击按钮时打开一个弹出窗口.Popup窗口应该包含运行时的图像或视图。 请帮我。 问候 阿努邦
答案 0 :(得分: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 :(得分:0)