-1

I'm want to initialize a CLLocation object. To do this I'm using:

CLLocation *location = [[CLLocation alloc] initWithLatitude:latitude longitude:longitude];

My location need speed and timestamp, but speed and timestamp are read only parameters. How can I assign values to this parameters?

MathieuF
  • 3,130
  • 5
  • 31
  • 34
Ricardo
  • 2,086
  • 25
  • 35
  • 1
    Check this https://developer.apple.com/library/prerelease/ios/documentation/CoreLocation/Reference/CLLocation_Class/index.html#//apple_ref/occ/instm/CLLocation/initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp: – Er.Shreyansh Shah May 19 '15 at 11:39

1 Answers1

2

I have found the solution:

initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:

More info: Apple doc for CLLocation.

Nikhil Manapure
  • 3,748
  • 2
  • 30
  • 55
Ricardo
  • 2,086
  • 25
  • 35