일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 비전공 개발자
- hover
- keyframes
- 애니메이션
- 비전공자
- SWIFT
- css3
- ipad
- javascript
- xcode
- Animation
- react
- iPhone
- 풀스택
- effect
- html5
- 개발자
- image
- iOS 개발자
- IOS
- CSS
- php
- front-end
- button
- 백엔드
- HTML
- jQuery
- 프론트엔드
- Today
- Total
목록iPhone (67)
비전공자 개발일기

백그라운드(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..

프로젝트 제작을 위해 기능별로 나눠둔 부분들을 하나로 합치던 과정에서 생긴 에러 Thread 1: "Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient) || _CFMZEnabled()" 원인 1. Capability - Background mode가 없었던 것 2. Background mode 추가 후 Location updates를 체크하지 않았던 것 해결 1. Capability - Background mode를 추가 2. Background mode 추가 후 Location updates를 체크

Text Soap An iMessage chat becomes fodder for daytime drama This begins one morning with my friend in San Diego telling me about an earthquake they just had. It was loud. We just laid there and said “is this an earthquake? I think this is an earthquake.” Like is this an earthquake just go back to sleep It’s more like “this is an earthquake. Check the Internet. Yup. Earthquake. This is the size. ..

위의 설정을 프로젝트에 추가를 하면, 사용자 기기의 설정과 관계없이 하나의 모드를 고정(다른 모드의 설정을 무시) 할 수 있음
import UIKit import WebKit class ViewController: UIViewController, WKNavigationDelegate { override func viewDidLoad() { super.viewDidLoad() view.addSubview(webView) NSLayoutConstraint.activate([ webView.leadingAnchor.constraint(equalTo: view.leadingAnchor), webView.trailingAnchor.constraint(equalTo: view.trailingAnchor), webView.bottomAnchor.constraint(equalTo: view.layoutMarginsGuide.bottomAnch..

import UIKit class ViewController: UIViewController { @IBOutlet weak var kanji: UILabel! var kanjiList = ["羽", "矢", "才", "台", "切", "話", "主", "君", "対"] var num = Int.random(in: 0...9) override func viewDidLoad() { super.viewDidLoad() kanji.text = kanjiList[num] } @IBAction func changeBTN(_ sender: UIButton) { num = Int.random(in: 0..

import UIKit import FirebaseAuth class ProfileViewController: UIViewController { @IBOutlet var tableView: UITableView! let data = ["Log Out"] override func viewDidLoad() { super.viewDidLoad() tableView.register(UITableViewCell.self, forCellReuseIdentifier: "cell") tableView.delegate = self tableView.dataSource = self } } extension ProfileViewController: UITableViewDelegate, UITableViewDataSource..

// AppDelegate import UIKit import Firebase @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { FirebaseApp.configure() return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting conn..