/ Published in: Objective C
Meter el código en un archivo ".h". Posteriormente incluirlo en el header de la clase que nos interese de la siguiente forma:
import <CoreLocation/CoreLocation.h> import "CoreLocationSim.h"
Expand |
Embed | Plain Text
#ifdef TARGET_IPHONE_SIMULATOR @interface CLLocationManager (Simulator) @end @implementation CLLocationManager (Simulator) -(void)startUpdatingLocation { CLLocation *powellsTech = [[[CLLocation alloc] initWithLatitude:45.523450 longitude:-122.678897] autorelease]; [self.delegate locationManager:self didUpdateToLocation:powellsTech fromLocation:powellsTech]; } @end #endif // TARGET_IPHONE_SIMULATOR
You need to login to post a comment.
