资源描述:
《[Geolocation.in.iOS(2012.10)].Alasdair.Allan.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、GeolocationiniOSAlasdairAllanBeijing•Cambridge•Farnham•Köln•Sebastopol•TokyoGeolocationiniOSbyAlasdairAllanCopyright©2012AlasdairAllan.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebast
2、opol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorpor
3、ate@oreilly.com.Editors:ShawnWallaceandBrianJepsonCoverDesigner:KarenMontgomeryProductionEditor:KaraEbrahimInteriorDesigner:DavidFutatoProofreader:KaraEbrahimIllustrator:RebeccaDemarestOctober2012:FirstEdition.RevisionHistoryfortheFirstEdition:2012-10
4、-01FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449308445forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.GeolocationiniOS,theimageofabrindledgnu,andrelatedtradedr
5、essaretrade-marksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprint
6、edincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorsassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-30844-5[LSI]1349100417Tabl
7、eofContentsPreface......................................................................v1.Introduction...........................................................1HardwareSupport1DetectingHardwareDifferences2GPSAvailability2CompassAvailability2Setting
8、RequiredHardwareCapabilities3BackgroundModes32.CoreLocation...........................................................5TheStandardLocationService5BasicUsage6ReportingtheUser’sPosition7AddingaUserInterface11SignificantLocationMonitoring16Contin