saving text to a textview useing
i have been working on something and am stuck.what i want is for my buttons to print to a textview ..and for the textview to keep the last text and also print the new button prested...ie.....press button1/id..1/textview reads ..1---button2/id..2/textview reads..12.. need the textview to read like a phone number i.e...555-555-5555.i have gon over and over this and can't seem to get it to work any `enter code here`help would be great....have everything but saving the numbers and printing like a phone

.H file

}

- (IBAction)buttonpressed:(id)sender;
{


@property (strong, nonatomic) IBOutlet UITextView *statustext;

.M file

- (IBAction)buttonpressed:(id)sender 
{

NSString *title = [sender currentTitle];

NSString *newtext = [[NSString alloc] initWithFormat:@"%@",title];

statustext.text = newtext;

SystemSoundID soundID;

NSString *soundfile = [[NSBundle mainBundle]pathForResource:title ofType:@"mp3"];

AudioServicesCreateSystemSoundID((__bridge CFURLRef)[ NSURL fileURLWithPath:soundfile],&soundID);

AudioServicesPlaySystemSound(soundID);

}
saving text to a textview useing
===

i have been working on something and am stuck.what i want is for my buttons to print to a textview ..and for the textview to keep the last text and also print the new button prested...ie.....press button1/id..1/textview reads ..1---button2/id..2/textview reads..12.. need the textview to read like a phone number i.e...555-555-5555.i have gon over and over this and can't seem to get it to work any `enter code here`help would be great....have everything but saving the numbers and printing like a phone

.H file

}

- (IBAction)buttonpressed:(id)sender;
{


@property (strong, nonatomic) IBOutlet UITextView *statustext;

.M file

- (IBAction)buttonpressed:(id)sender 
{

NSString *title = [sender currentTitle];

NSString *newtext = [[NSString alloc] initWithFormat:@"%@",title];

statustext.text = newtext;

SystemSoundID soundID;

NSString *soundfile = [[NSBundle mainBundle]pathForResource:title ofType:@"mp3"];

AudioServicesCreateSystemSoundID((__bridge CFURLRef)[ NSURL fileURLWithPath:soundfile],&soundID);

AudioServicesPlaySystemSound(soundID);

}