我对 iOS 很陌生,甚至对使用 MapKit 库也很陌生。
我正在尝试创建一个名为 MKAnnotation 类的实例TruckLocation
,我已经做到了这一点,但我真的很想知道如何使用我的纬度和经度作为坐标。
坐标是纬度 40.300828 和经度 -111.663802。
这是我到目前为止所拥有的:
TruckLocation *a1 = [[TruckLocation alloc] initWithName:@"test truck 1" address:@"41 Truck Avenue, Provo, Utah" coordinate:<#(CLLocationCoordinate2D)#>];