草庐IT

placeMark

全部标签

ios - 从 iOS 中的邮政编码自动填充城市和州

我的View中有三个文本字段。1.邮政编码,2.城市和3.州。如何在iOS中根据邮政编码自动填充城市和州字段?-(BOOL)textField:(UITextField*)textFieldshouldChangeCharactersInRange:(NSRange)rangereplacementString:(NSString*)string{NSString*currentString=[textField.textstringByReplacingCharactersInRange:rangewithString:string];intlength=[currentString

ios - 从 iOS 中的邮政编码自动填充城市和州

我的View中有三个文本字段。1.邮政编码,2.城市和3.州。如何在iOS中根据邮政编码自动填充城市和州字段?-(BOOL)textField:(UITextField*)textFieldshouldChangeCharactersInRange:(NSRange)rangereplacementString:(NSString*)string{NSString*currentString=[textField.textstringByReplacingCharactersInRange:rangewithString:string];intlength=[currentString

iphone - 在 iOS 中从纬度和经度获取位置名称

我想从纬度和经度中找到当前位置名称,这是我试过的代码片段,但我的日志在除placemark、placemark.ISOcountryCode和placemark.country我想要placemark.locality和placemark.subLocality的值,但它显示的是空值。-(void)viewWillAppear:(BOOL)animated{[superviewWillAppear:animated];//thiscreatestheCCLocationManagerthatwillfindyourcurrentlocationlocationManager=[[CLL

iphone - 在 iOS 中从纬度和经度获取位置名称

我想从纬度和经度中找到当前位置名称,这是我试过的代码片段,但我的日志在除placemark、placemark.ISOcountryCode和placemark.country我想要placemark.locality和placemark.subLocality的值,但它显示的是空值。-(void)viewWillAppear:(BOOL)animated{[superviewWillAppear:animated];//thiscreatestheCCLocationManagerthatwillfindyourcurrentlocationlocationManager=[[CLL

ios - Swift 4 中的反向地理编码

我正在尝试编写一个简单的方法,该方法提供CLLocationDegrees并返回一个CLPlacemark。看着Apple'sdocumentation,这似乎是一项简单的任务。下面是我扔进Playground的东西:importCoreLocation//thisisnecessaryforasynccodeinaplaygroundimportPlaygroundSupport//thisisnecessaryforasynccodeinaplaygroundPlaygroundPage.current.needsIndefiniteExecution=truefuncgeocod

ios - Swift 4 中的反向地理编码

我正在尝试编写一个简单的方法,该方法提供CLLocationDegrees并返回一个CLPlacemark。看着Apple'sdocumentation,这似乎是一项简单的任务。下面是我扔进Playground的东西:importCoreLocation//thisisnecessaryforasynccodeinaplaygroundimportPlaygroundSupport//thisisnecessaryforasynccodeinaplaygroundPlaygroundPage.current.needsIndefiniteExecution=truefuncgeocod

ios - 如何以编程方式快速打开带有坐标的 map 应用程序?

我有要在我的map应用程序中打开的纬度和经度。我尝试了来自HERE的这段代码.funcgoToMap(){varlat1:NSString=self.venueLatvarlng1:NSString=self.venueLngvarlatitude:CLLocationDegrees=lat1.doubleValuevarlongitude:CLLocationDegrees=lng1.doubleValuevarcoordinate=CLLocationCoordinate2DMake(latitude,longitude)varplacemark:MKPlacemark=MKPla

ios - 如何以编程方式快速打开带有坐标的 map 应用程序?

我有要在我的map应用程序中打开的纬度和经度。我尝试了来自HERE的这段代码.funcgoToMap(){varlat1:NSString=self.venueLatvarlng1:NSString=self.venueLngvarlatitude:CLLocationDegrees=lat1.doubleValuevarlongitude:CLLocationDegrees=lng1.doubleValuevarcoordinate=CLLocationCoordinate2DMake(latitude,longitude)varplacemark:MKPlacemark=MKPla

ios - 从 MKPlacemark 创建 MKMapItem 时,MKMapitem 的 Placemark.name 为 nil

MKPlacemark*placemark1=[[MKPlacemarkalloc]initWithPlacemark:mapItem1.placemark];MKMapItem*item=[[MKMapItemalloc]initWithPlacemark:placemark1];NSLog(@"placemark1.nameis-%@",placemark1.name)placemark1.nameis-StarbucksNSLog(@"mapItem1'splacemark.nameis-%@",mapItem1.placemark.name)mapItem1'splacemar