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
Asked
Active
Viewed 1.2k times
2
-
1You 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 Answers
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
-
2right..please refer these solutions for ios 7 http://stackoverflow.com/questions/18729220/uialertview-addsubview-in-ios7 – BhushanVU Nov 18 '13 at 05:22