当前位置: 首页 > news >正文

做网站走啥科目wordpress 子网站重命名

做网站走啥科目,wordpress 子网站重命名,网站建设服务器租用,百度建站平台官网2019独角兽企业重金招聘Python工程师标准 接第一步的操作#xff0c;获取到地址信息经纬度后#xff0c;我们可以对其进行解码#xff0c;解码采用的CLGeocoder这个类#xff0c;使用方式如下#xff1a; 1、在ViewControlelr.m文件中声明一个CLGeocoder的… 2019独角兽企业重金招聘Python工程师标准  接第一步的操作获取到地址信息经纬度后我们可以对其进行解码解码采用的CLGeocoder这个类使用方式如下 1、在ViewControlelr.m文件中声明一个CLGeocoder的属性给页面加一个button然后在处理方法中对上一篇获取的地址坐标进行解码 code如下 // // ViewController.m // LBS_001_CLLocationManager // // Created by liqun on 13-7-17. // Copyright (c) 2013年 Block Cheng. All rights reserved. //#import ViewController.h #import CoreLocation/CoreLocation.h #import MapKit/MapKit.h interface ViewController ()CLLocationManagerDelegate,MKMapViewDelegate{ } property (nonatomic,retain)CLLocationManager* locationManager; property (nonatomic,retain)CLLocation* location; property (nonatomic, retain) CLGeocoder *myGeocoder; endimplementation ViewController-(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {if (self [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {_locationManager [[CLLocationManager alloc] init];}return self; } - (void)dealloc {self.locationManager nil;self.location nil;self.myGeocoder nil;[super dealloc]; } - (void)viewDidLoad {[super viewDidLoad];// Do any additional setup after loading the view, typically from a nib.//delegateself.locationManager.delegate self;//The desired location accuracy. self.locationManager.desiredAccuracy kCLLocationAccuracyBest;//Specifies the minimum update distance in meters.self.locationManager.distanceFilter kCLDistanceFilterNone;self.locationManager.purpose To provide functionality based on users current location.;[self.locationManager startUpdatingLocation];UIButton *addBt [UIButton buttonWithType:UIButtonTypeRoundedRect];addBt.frame CGRectMake(0, 00, 320, 50);[addBt setTitle:locationMe forState:UIControlStateNormal];[addBt addTarget:self action:selector(handleLocationMe:) forControlEvents:UIControlEventTouchUpInside];[self.view addSubview:addBt];self.myGeocoder [[CLGeocoder alloc] init]; }- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status {NSLog(didChangeAuthorizationStatus---%u,status); }- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {NSLog(didChangeAuthorizationStatus----%,error); }- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {UIAlertView* av [[UIAlertView alloc] initWithTitle:update message:[NSString stringWithFormat:didUpdateToLocation: newLocation: % old:%,newLocation,oldLocation] delegate:nil cancelButtonTitle:cancel otherButtonTitles:ok, nil];[av show];[av release];self.location newLocation;NSLog(didUpdateToLocation: newLocation: %,newLocation); }- (void)didReceiveMemoryWarning {[super didReceiveMemoryWarning];// Dispose of any resources that can be recreated. }-(IBAction)handleLocationMe:(id)sender {[self.myGeocoderreverseGeocodeLocation:self.location completionHandler:^(NSArray *placemarks, NSError *error) {if (error nil [placemarks count] 0){CLPlacemark *placemark [placemarks objectAtIndex:0];/* We received the results */NSLog(Country %, placemark.country);NSLog(Postal Code %, placemark.postalCode);NSLog(Locality %, placemark.locality);NSLog(dic %, placemark.addressDictionary );NSLog(dic FormattedAddressLines %, [placemark.addressDictionary objectForKey:FormattedAddressLines]);NSLog(dic Name %, [placemark.addressDictionary objectForKey:Name]);NSLog(dic State %, [placemark.addressDictionary objectForKey:State]);NSLog(dic Street %, [placemark.addressDictionary objectForKey:Street]);NSLog(dic SubLocality %, [placemark.addressDictionary objectForKey:SubLocality]);NSLog(dic SubThoroughfare %, [placemark.addressDictionary objectForKey:SubThoroughfare]);NSLog(dic Thoroughfare %, [placemark.addressDictionary objectForKey:Thoroughfare]);}else if (error nil [placemarks count] 0){NSLog(No results were returned.);}else if (error ! nil){NSLog(An error occurred %, error);}}]; } end 日志输出如下 2013-07-28 20:47:16.578 LBS_001_CLLocationManager[30123:907] didChangeAuthorizationStatus---3 2013-07-28 20:47:17.288 LBS_001_CLLocationManager[30123:907] didUpdateToLocation: newLocation: 39.93751238,116.34143052 /- 65.00m (speed -1.00 mps / course -1.00) 13-7-28 中国标准时间下午8时47分16秒 2013-07-28 20:47:17.300 LBS_001_CLLocationManager[30123:907] didUpdateToLocation: newLocation: 39.93751238,116.34143052 /- 65.00m (speed -1.00 mps / course -1.00) 13-7-28 中国标准时间下午8时47分16秒 2013-07-28 20:47:17.351 LBS_001_CLLocationManager[30123:907] didUpdateToLocation: newLocation: 39.93770077,116.34199932 /- 70.88m (speed -1.00 mps / course -1.00) 13-7-28 中国标准时间下午8时47分16秒 2013-07-28 20:47:17.392 LBS_001_CLLocationManager[30123:907] didUpdateToLocation: newLocation: 39.93767287,116.34189085 /- 65.00m (speed -1.00 mps / course -1.00) 13-7-28 中国标准时间下午8时47分17秒 2013-07-28 20:47:51.976 LBS_001_CLLocationManager[30123:907] Country 中国 2013-07-28 20:47:51.977 LBS_001_CLLocationManager[30123:907] Postal Code (null) 2013-07-28 20:47:51.979 LBS_001_CLLocationManager[30123:907] Locality (null) 2013-07-28 20:47:51.980 LBS_001_CLLocationManager[30123:907] dic {Country \U4e2d\U56fd;CountryCode CN;FormattedAddressLines (\U4e2d\U56fd\U5317\U4eac\U5e02\U897f\U57ce\U533a\U5c55\U89c8\U8def\U8857\U9053\U897f\U76f4\U95e8\U5916\U5927\U8857132\U53f7);Name \U4e2d\U56fd\U5317\U4eac\U5e02\U897f\U57ce\U533a\U5c55\U89c8\U8def\U8857\U9053\U897f\U76f4\U95e8\U5916\U5927\U8857132\U53f7;State \U5317\U4eac\U5e02;Street \U897f\U76f4\U95e8\U5916\U5927\U8857 132\U53f7;SubLocality \U897f\U57ce\U533a;SubThoroughfare 132\U53f7;Thoroughfare \U897f\U76f4\U95e8\U5916\U5927\U8857; } 2013-07-28 20:47:51.982 LBS_001_CLLocationManager[30123:907] dic FormattedAddressLines (\U4e2d\U56fd\U5317\U4eac\U5e02\U897f\U57ce\U533a\U5c55\U89c8\U8def\U8857\U9053\U897f\U76f4\U95e8\U5916\U5927\U8857132\U53f7 ) 2013-07-28 20:47:51.983 LBS_001_CLLocationManager[30123:907] dic Name 中国北京市西城区展览路街道西直门外大街132号 2013-07-28 20:47:51.985 LBS_001_CLLocationManager[30123:907] dic State 北京市 2013-07-28 20:47:51.986 LBS_001_CLLocationManager[30123:907] dic Street 西直门外大街 132号 2013-07-28 20:47:51.987 LBS_001_CLLocationManager[30123:907] dic SubLocality 西城区 2013-07-28 20:47:51.988 LBS_001_CLLocationManager[30123:907] dic SubThoroughfare 132号 2013-07-28 20:47:51.989 LBS_001_CLLocationManager[30123:907] dic Thoroughfare 西直门外大街 转载于:https://my.oschina.net/chengliqun/blog/147871
http://www.pierceye.com/news/917248/

相关文章:

  • 携程网站建设进度及实施过程文具电子商务网站开发内容
  • 怎么查看网站打开速度网站源码整站下载
  • 北京城乡住房建设部网站常见的网络营销推广方式有哪些
  • 做网站的成本费用钱宝网站怎么做任务
  • 网站上的格式用html怎么做部队网站设计
  • 帮客户做网站内容社交网站有哪些如何做
  • 网站开发与设计实训总结两千字公众号制作的网站开发
  • 一个公司做2个产品网站怎么做的用html5做的网站素材
  • 内乡网站建设咸阳网站建设报价
  • 企业网站多少钱扶余手机网站开发
  • 做外汇网站卖判刑多少年如何找回网站后台密码
  • 怎么做优惠券网站asp.net mvc 5网站开发之美
  • 网站底部浮动电话广告福建住房和城乡建设部网站
  • 建站之星破解版wordpress 置顶排序
  • c2c网站代表和网址涟源市建设局网站
  • 哪个网站有免费的模板免费网上商城系统
  • 一个网站的建设需要什么东西前十强排名家装公司
  • 广州网站建设报价表石家庄搜索排名提升
  • 网站备案步骤企业网站手机版模板免费下载
  • 郑州高端品牌网站建设镇江网站营销推广
  • 网站开发简单的框架南昌手机网站
  • 网站分析与优化百度新闻源网站有哪些
  • 直播网站开发秀色上海综合新闻
  • 电子商务网站建设与管理课后题答案企业网站推广哪家好
  • 网站被挂黑链怎么删除石家庄企业网站建设
  • 网站模板怎么连接域名可视化网页设计在线
  • 美术馆网站建设要求开发软件多少钱一个月
  • 直播网站开发核心技术wordpress访问次数插件
  • wap网站 劣势微信小程序怎么写
  • 商业网站开发与设计网站seo是什么意思