views:

253

answers:

0

hello, i want to add a 414 X 210 size view to an alert view instead of a normal alert view display. I used

MyTicketAlert = [[UIAlertView alloc] initWithTitle:@"NEW TICKET"message:@"Ticket Generated Successfully\n GOOD LUCK!!"  delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil]; 
[MyTicketAlert setBackgroundColor:[UIColor greenColor]];
[MyTicketAlert addSubview:loginView];
[MyTicketAlert show];

its adding the view twice in the main view . i have strucked with this. please help me . Thanks in advance