这是我的代码:
-(void) sendEmailTo:(NSString *)to withSubject:(NSString *) subject withBody:(NSString *)body {
NSString *mailString = [NSString stringWithFormat:@"mailto:?to=%@&subject=%@&body=%@",
[to stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding],
[subject stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding],
[body stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:mailString]];
}
-(void) send:(id) sender {
[self sendEmailTo:[phoneNumberEntry @"@txt.att.net"] withSubject:[settingsSubjectBox] withBody:[settingsMsgBox]];
}
-(IBAction)launchBomb:(id)sender {
sender;
}
在“void send sender”括号中,有一个“expected identifier”错误。我该如何解决?