objective c - error: expected specifier-qualifier-list before 'GKPeerPickerController -
I'm receiving this message (in the title). If you have been wanting to see what I just look quickly at your code, I have begun to implement peer picker, so I'm not working yet fully. I need some advice / support in the first part. The error appears in M-file between two .import statements, meaning that it could be something wrong that I've used Jikepiiarpikrkantrolr header file.
Bluetooth_Ad_Hoc_NetworkAppDelegate.h
#import & lt; UIKit / UIKit.h & gt; @ Class Bluetooth_Ad_Hoc_NetworkViewController; @interface Bluetooth_ad_aq_network appDialegate: NSObact & lt; UIApplicationDelegate & gt; {UIWindow * window; Bluetooth_Ad_Hoc_NetworkViewController * viewController; GKPeerPickerController * Picker; Jijunesh * session; IBOutlet UILabel * Status; NSDT * Data; } @ Property (Nonomatic, Rectangle) IBotllet UILb * Status; @protecti (nontomic, retten) gkppitter controller * picker; @property (nonatomic, retained) G2Cession * session; @ Property (Nonomatic, Retaining) IBOutlet UIWindow * Window; @ Property (Nonatomik, written) Aibiotllet Blututh_adi_ack_netvrkwukantrolr * View controller; @end
Bluetooth_Ad_Hoc_NetworkAppDelegate.m
#import "Bluetooth_Ad_Hoc_NetworkAppDelegate.h" #import "Bluetooth_Ad_Hoc_NetworkViewController.h" @ implementation Bluetooth_Ad_Hoc_NetworkAppDelegate @Synthesize position; @ Synthesizer picker; @ Synthesis session; @ Synthesis window; Modify the ViewController; - (blank) ApplicationDefinitional Launching: (UIApplication *) Application {// Override Point for optimization after app launch [Window Adsview: View controller: view]; [Window-making and knowledgeable]; // All data and start data data = [[NSDTTA alloc] Init withbits: and position length: size (position)]; // allocate and set up peer picker controller picker = [[Jikepiiarpikrkantrolr light] Init]; Picker.delegate = self; Picker.connectionTypesMask = GKPeerPickerConnectionTypeNearby; [Picker show]; } - (Zero) Dailyock [[Status Release]; [See Controller Release]; [Window release]; [Super DeLoc]; } Is done @end
Have you header file Include the following statement?
#import & lt; GameKit / GameKit.h & gt;
In addition, you need to include the gamekit framework.
Comments
Post a Comment