์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Swfit
- ios
- reactorkit
- Kuring
- Flutter
- swift
- visionOS
- UIKit
- RxSwift
- XCTest
- ํ๋ก๊ทธ๋๋จธ์ค
- tableView
- raywenderlich
- ๋ฐฑ์ค
- BFS
- Lv2
- ํจ์คํธ์บ ํผ์ค
- realm
- CollectionView
- arkit
- TCA
- node.js
- Xcode
- designpattern
- MVVM
- BOJ
- SnapKit
- rxcocoa
- SwiftUI
- combine
Archives
- Today
- Total
lgvv98
[Swift] kakaoMap API URL Scheme ๊ฐ๋จ ์ฌ์ฉ๋ฒ.๐ ๋ณธ๋ฌธ
โ ๏ธ deprecated โ ๏ธ/REST API ์ฐ์ต์ฅ
[Swift] kakaoMap API URL Scheme ๊ฐ๋จ ์ฌ์ฉ๋ฒ.๐
๐ฅ ์บ๋ฟ๋งจ 2022. 1. 17. 00:50โ ์ด๋ฒ ์๊ฐ์๋ kakaoMap ์ฌ์ฉ๋ฒ์ ๋ํด์ ๊ฐ๋ตํ ์์๋ณด๊ณ ๋์ด๊ฐ ์์ ์ด์ผ.
์นด์นด์ค ๋งต API์ ๊ฒฝ์ฐ์๋ ์๋ ์ฌ์ดํธ์ ๊ฐ๋ฉด ๋ ์์ธํ ๋ณผ ์ ์์ด.
https://apis.map.kakao.com/ios/
์ดํ๋ก๋ ๊ฐ์ด๋๋ฅผ ๋ณด๋ฉด์ ๋ฐ๋ผ๊ฐ๋ฉด ๋๋๋ฐ,
https://apis.map.kakao.com/ios/guide/
๊ฐ์ด๋๋ฅผ ์ฐ์ ๋ฐ๋ผ๊ฐ์ค.
โ URL Scheme๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ
โ ViewController.swift
class ViewController: UIViewController {
@IBAction func mapSchemeBtn(_ sender: Any) {
let urlString = "kakaomap://open"
if let appUrl = URL(string: urlString) {
if(UIApplication.shared.canOpenURL(appUrl)) {
UIApplication.shared.open(appUrl, options: [:], completionHandler: nil)
} else {
let showAlert = UIAlertController(title: "์๋ด", message: "์ฑ์ด ์ค์น ์๋์๊ฑฐ๋ ์ค๋ฅ์", preferredStyle: .alert)
}
}
}
}
์์ ๊ฐ์ด ์ฝ๋๋ฅผ ๋ฃ์ด์ฃผ๋ฉด ๋ผ.
๊ทธ๋ฆฌ๊ณ ์ฑ์ ์คํํ๋ฉด ๋์..!
'โ ๏ธ deprecated โ ๏ธ > REST API ์ฐ์ต์ฅ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[iOS] ๐บ KakaoMap API ํ๊ฒฝ์ค์ (0) | 2022.02.18 |
---|---|
[iOS] TmapAPI Swift ์ฌ์ฉ๋ฒ ์ ๋ฆฌ ๐ (0) | 2022.01.17 |
[iOS] KakaoMessage ์ฌ์ฉ๋ฒ(๊ธฐ๋ณธ) โ๏ธ (0) | 2022.01.02 |
๋ค์ด๋ฒ ์ง๋ API โ ๏ธ ๋น๋ ์๋ฌ ํด๊ฒฐ (0) | 2021.09.27 |
[REST API] ์นด์นด์ค ์น ๊ฒ์ API - Swift (2) | 2021.09.25 |
Comments