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

위의 설정을 프로젝트에 추가를 하면, 사용자 기기의 설정과 관계없이 하나의 모드를 고정(다른 모드의 설정을 무시) 할 수 있음
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..

시연 영상 위의 기능을 추가하기에 앞서 추가해야할 설정 권한 설정! Privacy - Camera Usage Description 카메라 사용 권한 Privacy - Photo Library Additons Usage Description 사진첩 접근 및 사용 권한 extension 해당 화면의 뷰컨트롤러: UIImagePickerControllerDelegate, UINavigationControllerDelegate { func presentPhotoActionSheet() { actionSheet.addAction(UIAlertAction(title: "Cancel", style: .cancel)) actionSheet.addAction(UIAlertAction(title: "Take Photo",..

직면한 에러 Initializer for conditional binding must have Optional type, not 'OOO' (번역) 조건부 바인딩의 이니셜라이저에는 옵션 유형이 있어야 합니다 해결 방안 습관적으로 guard let으로 optional을 unwrapping 하는데 이 과정이 필요없을 경우에는 바로 사용해도 문제 없음

[SceneDelegate] func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. // This delegate does not imply th..
storyboard, code 작성 완료 후 테스트 과정에서 마주친 에러 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException' , reason: 'Invalid parameter not satisfying: [constraint isKindOfClass:[NSLayoutConstraint class]]' 처음엔 Xcode 버그인가라고 생각해 Mac 재실행, Xcode 재실행을 했었으나 같은 에러가 계속 등장 그래서 해당 에러를 면밀히 읽어보니까 보이는 단어 constraint 이것을 바탕으로, storyboard에서 뭔가가 잘못됬을거라 추측 해결 과정 1. storyboard에서 에러가 발생하는 부분은 없었기에, ..
LaunchScreen.storyboard 앱이 실행될 때 가장 먼저 화면에 나타나도록 설정된 화면 -> main이 노출되기 전에 잠시 나타나는 화면 주의 사항 UIKit만 사용해야 함 단 하나의 UIView or UIViewController 객체만 사용해야 함 Action, Outlet 사용 불가 UIWebView 사용 불가 커스텀 클래스 불가 런타임 속성 사용 불가 LaunchScreen 시간 조절법 -> Sleep(Int) func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override p..