2

i wants to open a popup window on click of buttons.Popup window should contain images or view at runtime. please help me. regards anupam

user2147631
  • 83
  • 1
  • 2
  • 9
  • 1
    You need to give more context...what kind of window ? How should it be displayed ? Have a look at presenting a modal view. – Petar Apr 05 '13 at 10:53

1 Answers1

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];
byJeevan
  • 3,728
  • 3
  • 37
  • 60
BhushanVU
  • 3,455
  • 1
  • 24
  • 33