-(void) alertView:(UIAlertView *) alertview clickedButtonAtIndex:(NSInteger)buttonIndex {
if(buttonIndex == 1){
Accidenthelpercall* help = [[Accidenthelpercall alloc]initWithNibName:@"Accidenthelpercall" bundle:nil];
[self presentModalViewController:help animated:YES];
[help setTitle:@"Accident Helper"];
[help release];
}
if(buttonIndex == 2)
{
Accidentdamagecar* damagecar = [[Accidentdamagecar alloc]initWithNibName:@"Accidentdamagecar" bundle:nil];
[[self navigationController] pushViewController:damagecar animated:YES];
[damagecar setTitle: @"Car Damage"];
[damagecar release];
}
Quote:
Originally Posted by xiii3
you see im thinking that i should use core data and that way i could update the data to one place... but im not sure. i am reading up on core data at the moment. but if there are any better ways id like to know.
the main one is actually the UIAlertview problem... because i dont know what im doing with it at all.... whether i can use the one UIAlertview several times on different IBActions but only give it properties and synthesize it once.... or if i can actually send multiple button presses to one place :confused:
|