본문 바로가기

iOS192

[iOS] Xcode build configuration debug vs release What are Debug and Release Modes in Xcode? How to Check App is Running in Debug Mode? Understand Build Configurations Better medium.com When to set debug configuration for archiving an iOS app? I'm reading the App Distribution Guide and, in the "Beta Testing Your iOS App" section and in its "Archiving and Validating your App" subsection, talking about the Archive scheme settings it is sai... sta.. 2022. 10. 11.
[iOS] Push 클릭 후 앱 실행 시 life cycle 콜백 호출 순서 push 클릭 후 앱 실행 시, push 수신 시에 실행되는 콜백이 어느 타이밍에 실행되는지 알고 싶어서 확인 해보았다. 1. Push 클릭 하지 않고 앱 실행 시 순서 application didFinishLaunchingWithOptions inactive viewDidLoad viewWillAppear applicationDidBecomeActive viewDidAppear active 2. Push 클릭 후 앱 실행 시 순서 (slient push x) application didFinishLaunchingWithOptions inactive userNotificationCenter didReceive push 핸들링 콜백이 viewDidLoad보다 먼저 호출이 된다. 즉, push 도착 후 핸들.. 2022. 10. 2.
[iOS] UI event를 main thread에서 처리해야하는 이유 iOS ) 왜 main.sync를 하면 안될까 안녕하세요 :) Zedd입니다. 오늘은 왜!!! 왜 main.sync를 하면 안되는지 자세히 공부해볼게요. 그렇다고 main.sync를 무조건 하면 안된다는것도 아닙니다. 요 부분은 밑에서 다시 볼게요. main.sync를 하게 zeddios.tistory.com ※우선 이 내용은 위의 레퍼런스 게시글과 내 생각을 정리한 글이기 때문에 정확하지 않을 수 있음을 알림. UI event를 main thread에서 처리해야하는 이유 Update Cycle과 관련한 설명 글에서 아래와 같은 그림을 첨부한 적이 있다. 사용자 이벤트 발생 시 어떻게 핸들링 되는지를 알려주는 모습인데, UI Event는 Event queue로 넘어간 뒤, Main run loop에서 U.. 2022. 10. 2.
[iOS] @main의 역할 [iOS] iOS 애플리케이션 실행 순서, UIApplicationMain, @main C언어 기반의 프로그래밍 언어에서는 main이라는 함수가 앱의 시작이 된다. iOS 앱 또한 Objective-C 기반에서 돌아가기 때문에 앱은 main 함수에서 시작된다. iOS 애플리케이션 실행 순서 main 함수 실행 you9010.tistory.com @main의 역할 기존에 Objective-C 기반 프로젝트에서는 main.m 파일 안에main함수를 선언하여 실행함으로써 앱의 시작할 수 있는 entry point를 제공했다. main함수는 UIApplicationMain 함수를 실행하고 UIApplicationMain함수는 UIApplication객체를 생성하고 UIApplicationDelegate를 인스턴.. 2022. 10. 1.