일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- MAC
- iPhone
- keyframes
- javascript
- html5
- 풀스택
- 자바스크립트
- ipad
- hover
- Animation
- 백엔드
- jQuery
- react
- front-end
- 비전공자
- php
- css3
- IOS
- 애니메이션
- iOS 개발자
- SWIFT
- 비전공 개발자
- button
- 프론트엔드
- xcode
- 개발자
- HTML
- effect
- CSS
- image
- Today
- Total
목록CoreLocation (2)
비전공자 개발일기
import UIKit import CoreLocation func distanceCalculator(preLat: Double?, preLng: Double?, postLat: Double?, postLng: Double?) -> String { guard let preLat = preLat, let preLng = preLng, let postLat = postLat, let postLng = postLng else { return "" } let preLocation = CLLocation(latitude: preLat, longitude: preLng) let postLocation = CLLocation(latitude: postLat, longitude: postLng) let distance..

백그라운드(Background) 상태 앱의 UI가 사용자 눈에는 보이지 않지만 특정 기능을 수행하는 앱의 경우에는 계속 실행되는 상태( ex) 음악, 지도 등) 포그라운드(Foreground) 상태 앱의 사용자가 보고 있는 화면 Background Mode Setting 예시 코드 import UIKit import CoreLocation class ViewController: UIViewController { var locationManager: CLLocationManager! override func viewDidLoad() { super.viewDidLoad() locationManager = CLLocationManager() locationManager.delegate = self locati..