전체 글 (258) 썸네일형 리스트형 [UIKit] UIResponder UIResponder이벤트에 응답하고 처리하기 위한 추상적인 인터페이스 Class UIResponder는 UIKit의 핵심 클래스로, 사용자 이벤트(터치, 모션, 리모트 컨트롤 등) 처리하는 객체들의 Base ClassUIView, UIViewController, UIApplication 등 대부분의 UI 컴포넌트가 UIResponder를 상속 받음Responder Chain을 통해 이벤트가 전파되는 구조를 관리 이벤트 처리UIResponder에서는 4가지 유형의 이벤트를 처리할 수 있습니다.Touchoverride func touchesBegan(_ touches: Set, with event: UIEvent?) { // 터치 시작 시 동작}Motionoverride func motionEnde.. [SwiftUI] Managing user interface state 이 문서의 글을 번역하여 글을 작성하였습니다. Managing user interface state | Apple Developer DocumentationEncapsulate view-specific data within your app’s view hierarchy to make your views reusable.developer.apple.com 사용자 인터페이스(UI) 상태 관리앱의 View 계층 구조 내의 View 별 데이터를 캡슐화 하여 View를 재사용할 수 있도록 합니다.SwiftUI에서는 값을 수정하려면 Swift에서 처럼 body 내에서 값을 변경 할 수 없습니다.SwiftUI에서 데이터는 View의 최소 공통 조상에 상태로 저장되고 단일 진실의 출처를 제공합니다.이를 통해 데이터는.. [fastlane] Error: Unable to upload archive. Failed to get authorization for username and password 해결법 fastlane 실행 중에 아래와 같은 에러가 발생하였다. Error: Unable to upload archive. Failed to get authorization for username and password 아무리 봐도 Appstore Connect 오류인 것 같은데 정확하게 설정은 해줬다고 생각했는데 앱 암호로 설정해줘야한다. 1. 아래 사이트로 접속 Apple AccountYour account you use for all Apple servicesaccount.apple.com 2. 앱 암호 생성 생성 하면 XXXX-XXXX-XXXX-XXXX 이런 식으로 생성될 것이다.(나 같은 경우는 저런 형태였다) 3. fastlane/Appfile 또는 Fastfile에 추가ENV["FASTLANE_P.. [CI/CD] AppStore 배포 fastlane 사용법 1. fastlane 설정fastlane init2. "fastlane를 무엇에 사용하고 싶으신가요?" → 3번 App Store 배포 선택3. 애플 계정 입력4. 앱의 Metadata를 fastlane으로 관리할 건가요? 기본 설정은 완료!이제 내가 배포를 하고 싶다면bundle exec fastlane ios release 완료출처 [iOS] Fastlane으로 배포 자동화하기Bundler 와 Gemfile 을 이용해서 fastlane 의존성 관리하기1-1. 터미널에서 gem install bundler 입력해서 번들러 설치만약, 에러가 발생했다면 아래 절차를 따른다.brew updatebrew install rbenv ruby-buildvelog.io Archive -> Xcode Upload.. RxSwift 시즌 2 정리 영상Swift에서 비동기(async)로 작업하는 경우 completion을 통해서 값을 가져오고 이 값을 사용할 때마다 계속 함수를 호출해야 했음// 함수 선언func downloadJson(_ url: String, completion: @escaping ((String?) -> Void)){ let url = URL(string: url)! DispatchQueue.global().async{ let data = try! Data(contentsOf: url) let json = String(data: data, encoding: .utf8) completion(json) }}// 사용downloadJson(MY_URL){ json in le.. [백준] 별찍기 7 정답let n = Int(readLine()!)!for i in 1...n { let star = String(repeating: " ", count: n - i) + String(repeating: "*", count: 2 * i - 1) print(star)}for i in 1.. String(repeating:count:)를 이용해서 풀이 init(repeating:count:) | Apple Developer DocumentationCreates a new string representing the given string repeated the specified number of times.developer.apple.com출처 만도스의 개발 일기장 dev-mandos.tistory.com [iOS/Error] Command SwiftVerifyEmittedModuleInterface failed with a nonzero exit code 해결법 Framework를 만드는 도중에 처음 보는 에러가 등장하였다. Command SwiftVerifyEmittedModuleInterface failed with a nonzero exit code https://github.com/swiftlang/swift/issues/64669#issuecomment-1493939553 Xcode 14.3 RC 2 (14E222b)/Swift Compiler 5.8 SwiftVerifyEmittedModuleInterface failed to verify module interface · Issue #64Description Use Xcode 14.3 RC 2 compile a swift file which import a objc clang module, and a.. UIModalPresentationStyle modalPresentationStylemodal View Controller의 표현 스타일PresentationStyle은 System이 modal ViewController를 어떻게 표현하는지 정의시스템은 이 값을 일반적인 width 사이즈 클래스에서 사용(compact width 클래스에서는 일부 스타일은 다른 스타일의 동작을 수행)adaptivePresentationStyle(for:traitCollection:) 메서드를 구현하여 동작에 영향을 미칠 수 있음PresentationStyle은 modal ViewController의 콘텐츠 크기에도 영향을 미침 예를 들어 UIModalPresentationStyle.pageSheet은 시스템이 제공하는 명시적 크기를 사용하고, 이와 대조적으로 UIM.. 이전 1 2 3 4 5 6 7 8 ··· 33 다음