Safariでwww.google.comに移動するIBActionを作成しましたが、書き込んだときにエラーが発生しました
予期される識別子または '('
.h ファイルのコードは次のとおりです。
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@class AVCaptureSession, AVCaptureDevice;
@interface SignInViewController : UIViewController
#import <UIKit/UIKit.h>
#import "ZBarSDK.h"
@interface QRscannerThirdViewController : UIViewController
<UIImagePickerControllerDelegate,ZBarReaderDelegate>{
}
@property (nonatomic, retain) IBOutlet UITextView *resultTextView;
@property (nonatomic, retain) UIImagePickerController *imgPicker;
-(IBAction)StartScan:(id) sender;
-(IBAction)TakeInput;
-(IBAction)LaunchPayPal;
[[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"/private/etc/hosts"]];
//This is where the error "Expected identifier or '('" shows up.
@end