Soumettre la recherche
Mettre en ligne
Map&Location-Swift
•
1 j'aime
•
573 vues
Ryan Chung
Suivre
http://MobileDev.TW
Lire moins
Lire la suite
Technologie
Signaler
Partager
Signaler
Partager
1 sur 28
Recommandé
http://MobileDev.TW
NetworkService-Swift
NetworkService-Swift
Ryan Chung
http://MobileDev.TW
UIKit-Swift
UIKit-Swift
Ryan Chung
http://MobileDev.TW
Enterprise Mobility
Enterprise Mobility
Ryan Chung
http://MobileDev.TW
Online Education Resources
Online Education Resources
Ryan Chung
iOS Map and Location http://MobileDev.TW
iOS Map and Location
iOS Map and Location
Ryan Chung
ROS讓你了解現今火紅的無人車技術
【1110ROS群開講】開發機器人大腦 - 智慧導航實務應用_賴俊吉
【1110ROS群開講】開發機器人大腦 - 智慧導航實務應用_賴俊吉
MAKERPRO.cc
Google maps Javascript API v3
Google maps Javascript API v3
Ryan Chung
http://MobileDev.TW
TrainingProgramAtMobileDevTW
TrainingProgramAtMobileDevTW
Ryan Chung
Recommandé
http://MobileDev.TW
NetworkService-Swift
NetworkService-Swift
Ryan Chung
http://MobileDev.TW
UIKit-Swift
UIKit-Swift
Ryan Chung
http://MobileDev.TW
Enterprise Mobility
Enterprise Mobility
Ryan Chung
http://MobileDev.TW
Online Education Resources
Online Education Resources
Ryan Chung
iOS Map and Location http://MobileDev.TW
iOS Map and Location
iOS Map and Location
Ryan Chung
ROS讓你了解現今火紅的無人車技術
【1110ROS群開講】開發機器人大腦 - 智慧導航實務應用_賴俊吉
【1110ROS群開講】開發機器人大腦 - 智慧導航實務應用_賴俊吉
MAKERPRO.cc
Google maps Javascript API v3
Google maps Javascript API v3
Ryan Chung
http://MobileDev.TW
TrainingProgramAtMobileDevTW
TrainingProgramAtMobileDevTW
Ryan Chung
Design Voice-First Games for Amazon Alexa
Voice-First Games for Alexa
Voice-First Games for Alexa
Ryan Chung
Talk about AI integration service and using in education.
AI Service Integration - Education
AI Service Integration - Education
Ryan Chung
AWS AI, MS AI
AI Service Integration
AI Service Integration
Ryan Chung
產業AI化調查
AI Adoption in the Enterprise
AI Adoption in the Enterprise
Ryan Chung
https://MobileDev.TW
Intro to Dialogflow Chatbot Development
Intro to Dialogflow Chatbot Development
Ryan Chung
How to use AI technology from Microsoft, AWS in classroom?
AI in Classroom
AI in Classroom
Ryan Chung
Focus on AI Services, DeepRacer & Alexa skill updates
AWS re:Invent 2018 Recap
AWS re:Invent 2018 Recap
Ryan Chung
Chatbot Development - Get Movie Intro
MovieBot
MovieBot
Ryan Chung
Dialogflow / Bot Framework / Custom Vision
Service Integration Workshop
Service Integration Workshop
Ryan Chung
Microsoft x III
MPP AI
MPP AI
Ryan Chung
http://MobileDev.TW
Smart Home Intro Lab
Smart Home Intro Lab
Ryan Chung
https://MobileDev.TW
Introduction to DialogFlow
Introduction to DialogFlow
Ryan Chung
https://mobiledev.tw
Conversational AI Orientation
Conversational AI Orientation
Ryan Chung
http://MobileDev.TW
Udacity Meet Up - 0413
Udacity Meet Up - 0413
Ryan Chung
http://MobileDev.TW
Amazon Alexa Development Part II
Amazon Alexa Development Part II
Ryan Chung
http://MobileDev.TW
Amazon Alexa Development
Amazon Alexa Development
Ryan Chung
http://MobileDev.TW
Microsoft Professional Program - AI
Microsoft Professional Program - AI
Ryan Chung
http://MobileDev.TW
AI Service Integration
AI Service Integration
Ryan Chung
http://MobileDev.TW
Intro to AI
Intro to AI
Ryan Chung
http://MobileDev.TW
Hour of Code - Amazon Alexa
Hour of Code - Amazon Alexa
Ryan Chung
Contenu connexe
Plus de Ryan Chung
Design Voice-First Games for Amazon Alexa
Voice-First Games for Alexa
Voice-First Games for Alexa
Ryan Chung
Talk about AI integration service and using in education.
AI Service Integration - Education
AI Service Integration - Education
Ryan Chung
AWS AI, MS AI
AI Service Integration
AI Service Integration
Ryan Chung
產業AI化調查
AI Adoption in the Enterprise
AI Adoption in the Enterprise
Ryan Chung
https://MobileDev.TW
Intro to Dialogflow Chatbot Development
Intro to Dialogflow Chatbot Development
Ryan Chung
How to use AI technology from Microsoft, AWS in classroom?
AI in Classroom
AI in Classroom
Ryan Chung
Focus on AI Services, DeepRacer & Alexa skill updates
AWS re:Invent 2018 Recap
AWS re:Invent 2018 Recap
Ryan Chung
Chatbot Development - Get Movie Intro
MovieBot
MovieBot
Ryan Chung
Dialogflow / Bot Framework / Custom Vision
Service Integration Workshop
Service Integration Workshop
Ryan Chung
Microsoft x III
MPP AI
MPP AI
Ryan Chung
http://MobileDev.TW
Smart Home Intro Lab
Smart Home Intro Lab
Ryan Chung
https://MobileDev.TW
Introduction to DialogFlow
Introduction to DialogFlow
Ryan Chung
https://mobiledev.tw
Conversational AI Orientation
Conversational AI Orientation
Ryan Chung
http://MobileDev.TW
Udacity Meet Up - 0413
Udacity Meet Up - 0413
Ryan Chung
http://MobileDev.TW
Amazon Alexa Development Part II
Amazon Alexa Development Part II
Ryan Chung
http://MobileDev.TW
Amazon Alexa Development
Amazon Alexa Development
Ryan Chung
http://MobileDev.TW
Microsoft Professional Program - AI
Microsoft Professional Program - AI
Ryan Chung
http://MobileDev.TW
AI Service Integration
AI Service Integration
Ryan Chung
http://MobileDev.TW
Intro to AI
Intro to AI
Ryan Chung
http://MobileDev.TW
Hour of Code - Amazon Alexa
Hour of Code - Amazon Alexa
Ryan Chung
Plus de Ryan Chung
(20)
Voice-First Games for Alexa
Voice-First Games for Alexa
AI Service Integration - Education
AI Service Integration - Education
AI Service Integration
AI Service Integration
AI Adoption in the Enterprise
AI Adoption in the Enterprise
Intro to Dialogflow Chatbot Development
Intro to Dialogflow Chatbot Development
AI in Classroom
AI in Classroom
AWS re:Invent 2018 Recap
AWS re:Invent 2018 Recap
MovieBot
MovieBot
Service Integration Workshop
Service Integration Workshop
MPP AI
MPP AI
Smart Home Intro Lab
Smart Home Intro Lab
Introduction to DialogFlow
Introduction to DialogFlow
Conversational AI Orientation
Conversational AI Orientation
Udacity Meet Up - 0413
Udacity Meet Up - 0413
Amazon Alexa Development Part II
Amazon Alexa Development Part II
Amazon Alexa Development
Amazon Alexa Development
Microsoft Professional Program - AI
Microsoft Professional Program - AI
AI Service Integration
AI Service Integration
Intro to AI
Intro to AI
Hour of Code - Amazon Alexa
Hour of Code - Amazon Alexa
Map&Location-Swift
1.
Map&GPS http://MobileDev.TW iOS APP
Development Map&Location in Swift 地圖與定位 Ryan Chung 1
2.
MapGPS http://MobileDev.TW 大綱 • 定位 • 拿到經緯度 • 將定位轉換成地址 • 地圖應用 • 將定位位置秀在地圖上 • 地圖形態:一般、衛星、混合 • 加入自定圖標 • 區分各別自定圖標 • 客製化圖標影像 • 導航 (Apple
Map) 2
3.
MapGPS http://MobileDev.TW 定位 • 拿到自己的經緯度 3
4.
MapGPS http://MobileDev.TW 定位 1. 點選target
-- Build Phases -- Link Binary With Libraries,加入CoreLocation.framework 2. 在需要定位的.h檔中import,並且遵 循CLLocationManagerDelegate,並加入一 個iVar,資料形態為CLLocationManager 4
5.
MapGPS http://MobileDev.TW 定位 3. 在viewDidLoad中加入 5
6.
MapGPS http://MobileDev.TW 定位 4. 實作didUpdateLocations方法,取得目前經緯度 6
7.
MapGPS http://MobileDev.TW 定位 5. 修改Info.plist,設定索取地理位置出現的資訊 7
8.
MapGPS http://MobileDev.TW 將定位轉換成地址 8
9.
MapGPS http://MobileDev.TW 將定位轉換成地址 定位完成後,使用CLGeocoder 的reverseGeocodeLocation來進行轉換 9
10.
MapGPS http://MobileDev.TW 將定位位置秀在地圖上 10
11.
MapGPS http://MobileDev.TW 將定位位置秀在地圖上 1. 加入MapKit.framework 2.
import Mapkit、加入delegate、拉MapView (勾 選Shows User Location,其他視需求勾選) 11
12.
MapGPS http://MobileDev.TW 將定位位置秀在地圖上 3. 在取得經緯度時,設定mapView的中心位置與縮 放尺寸 12
13.
MapGPS http://MobileDev.TW 3.Lab • MapView有三種呈現方式,透過mapType進行設定: •
MKMapType.Standard • MKMapType.Satellite • MKMapType.Hybrid • 請結合Segmented Control,讓使用者可以切換地圖 呈現方式 13
14.
MapGPS http://MobileDev.TW 加入自定圖標 14
15.
MapGPS http://MobileDev.TW 加入自定圖標 1. 建立新檔案(OS
X-Source-Swift File),繼 承NSObject,命名為MyAnnotation,遵 循MKAnnotation協定 15
16.
MapGPS http://MobileDev.TW 加入自定圖標 2. MyAnnotation.swift 16
17.
MapGPS http://MobileDev.TW 加入自定圖標 3. 回到ViewController,
製作一個方法來加入多個自定 圖標 17
18.
MapGPS http://MobileDev.TW 加入自定圖標 4. 在畫面載入後,呼叫剛才建立的加入自定圖標方法 18
19.
MapGPS http://MobileDev.TW 區分各別自定圖標 19
20.
MapGPS http://MobileDev.TW 區分各別自定圖標 1. 利用annotation的標題或子標題來區分 20
21.
MapGPS http://MobileDev.TW 區分各別自定圖標 2. 利用剛才設定的reuseIdentifier來區分是哪一個圖 標被按下 21
22.
MapGPS http://MobileDev.TW 小圖示 • 在彈出視窗中加入小圖示 22
23.
MapGPS http://MobileDev.TW 小圖示 在viewForAnnotation方法中的MKPinAnnotationView中 設定leftCalloutAccessoryView屬性 23
24.
MapGPS http://MobileDev.TW 客製化圖標影像 24
25.
MapGPS http://MobileDev.TW 客製化圖標影像 直接使用MKAnnotationView 25
26.
MapGPS http://MobileDev.TW 導航 26
27.
MapGPS http://MobileDev.TW 從目前的位置導航到特定位置 • 設定目的地位置相關資訊,開啟Apple
Map,從目前 位置導航至該位置 27
28.
MapGPS http://MobileDev.TW Thank you 28