iOS 適用的 Navigation SDK 程式碼範例
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
iOS 版 Navigation SDK GitHub 範例存放區包含範例應用程式,示範如何使用 SDK。您可以匯入及建構應用程式、新增 API 金鑰、查看示範教學,以及使用隨附的程式碼範例著手建構應用程式。存放區內含兩個版本的範例應用程式:
- Swift:
googlemaps-samples/maps-sdk-for-ios-samples
- Objective-C:
googlemaps-samples/maps-sdk-for-ios-samples
如要進一步瞭解如何執行範例應用程式,請參閱試用試用版。
Navigation SDK for iOS 程式碼研究室
如要瞭解如何使用 Navigation SDK 建構簡單的 iOS 應用程式,請參閱
iOS 版 Navigation SDK Codelab。程式碼研究室提供逐步指南,說明如何使用 Swift 導入 SDK。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[[["\u003cp\u003eThe Navigation SDK for iOS provides a sample app with demo code in both Swift and Objective-C to help developers get started.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can easily import, build, and run the sample app by adding their API key and viewing the provided demo.\u003c/p\u003e\n"],["\u003cp\u003eThe sample code serves as a starting point for developers to build their own navigation apps, with further guidance available in the \u003ca href=\"/maps/documentation/navigation/ios-sdk/try-demo\"\u003eTry the demo\u003c/a\u003e section.\u003c/p\u003e\n"],["\u003cp\u003eA step-by-step Swift implementation guide is offered through the \u003ca href=\"https://codelabs.developers.google.com/codelabs/maps-platform/navigation-sdk-101-ios\"\u003eNavigation SDK for iOS Codelab\u003c/a\u003e, ideal for learning the SDK's usage.\u003c/p\u003e\n"]]],["The Navigation SDK for iOS samples repository on GitHub offers a sample app in both Swift and Objective-C. Users can build the app, integrate their API key, and view a demo. The provided code serves as a foundation for custom app development. Additionally, a Navigation SDK for iOS Codelab guides users through building a basic iOS app using Swift with a step-by-step approach. Further details about running sample apps are available in the \"Try the demo\" section.\n"],null,["# Navigation SDK for iOS code samples\n\nThe Navigation SDK for iOS [samples repository on\nGitHub](https://github.com/googlemaps-samples/maps-sdk-for-ios-samples)\nincludes a sample app that demonstrates the use of the SDK. You can import and\nbuild the app, add your API key, view the demo, and use the sample code supplied\nas a starting point for your app. The repository contains two version of the\nsample app:\n\n- **Swift** : `googlemaps-samples/maps-sdk-for-ios-samples`\n- **Objective-C** : `googlemaps-samples/maps-sdk-for-ios-samples`\n\nFor more information about running the sample apps, see [Try the\ndemo](/maps/documentation/navigation/ios-sdk/try-demo).\n\nNavigation SDK for iOS Codelab\n------------------------------\n\nTo learn how to use the Navigation SDK by building a simple iOS app, see the [Navigation SDK for iOS\nCodelab](https://codelabs.developers.google.com/codelabs/maps-platform/navigation-sdk-101-ios).\nThe Codelab provides a step-by-step guide for implementing the SDK using Swift."]]