我做了一个 IBAction,应该在 Safari 中将我带到 www.google.com,但是当我写进去时,它给了我错误
预期标识符或“(”
这是 .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