본문 바로가기

Swfit102

Status bar 색상 변경하기! Status bar는 화면 상단에 시간과 배터리양, 와이파이 등 아이콘이 표시되어 있는 부분을 지칭합니다. 현재는 검정색으로 되어 있는데, 하얀색으로 바꾸어 보려고 합니다. 먼저 General > Deployment Info > Status Bar Style에서 원하는 옵션으로 변경해주면 됩니다. Default로 되어 있는데, 저는 흰색으로 바꾸고 싶어서 드롭다운에서 White을 골라 변경해주었습니다. 그리고 Info.plist에서 View controller-based status bar appearance를 NO로 지정해주면 됩니다. 제 프로젝트에서는 해당 key가 아예 없었기 때문에 직접 추가해주었습니다. 이미 해당 키가 있는 경우라면 값이 NO로 되어 있는지 확인해 주시면 됩니다. 이렇게 두 가지.. 2023. 1. 1.
RxSwift와 RxCocoa의 차이점 RxSwift RxCocoa framework framework 새로운 데이터에 반응하고 순서대로(sequential) 처리하는 비동기적 프로그램을 개발할 수 있도록 돕는 framework Cocoa API를 reactive 기술과 함께 더욱 편하게 사용할 수 있도록 돕는 framework 참고자료 https://www.kodeco.com/1228891-getting-started-with-rxswift-and-rxcocoa Getting Started With RxSwift and RxCocoa Use the RxSwift framework and its companion RxCocoa to take a chocolate-buying app from annoyingly imperative to awes.. 2023. 1. 1.
storyboard 없이 navigationItem 사용하기 storyboard를 사용하지 않으면 main 파일 자체를 삭제하기도 합니다. 그런 경우 viewcontroller에서 navigationItem을 사용하고 싶다면 SeceneDelegate (혹은 AppDelegate)에서 어떻게 rootViewController를 설정해야 하는지 알아보겠습니다. Navigation Item을 사용할 일이 없는 경우는 보통 아래처럼 rootViewController를 설정하게 됩니다. func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let windowScene = (scene as? UI.. 2022. 12. 22.
RxSwift란 1. RxSwift의 목적 RxSwift, in its essence, simplifies developing asynchronous programs by allowing your code to react to new data and process it in sequential, isolated manner. Functional programming에서 variable은 immutable 하다! 2. RxSwift 핵심 개념 1) Observable (= Sequence): Observables emit events(event는 값(value)라고 생각하면 됨) or errors "event"라고 하는 것은 Observable이 가지고 있는 "값"이다. Observable을 생성하는 다양한 연산자가 있는.. 2022. 12. 18.
Multiple-commands-produce-Error 해결방법 Xcode는 업데이트하면 항상 좀 앓는 것 같다,, Multiple-commands-produce-Error 해결방법 아래 블로그에서 참고! https://zetal.tistory.com/entry/Multiple-commands-produce-Error-%ED%95%B4%EA%B2%B0%EB%B2%95 Multiple commands produce Error 해결법 외부 라이브러리를 포함한 프로젝트를 다운로드 받았을때 종종 Multiple commands produced 에러를 보실 수 있습니다. 같은 파일명이 생겨서 나는 에러라고 합니다 해결법은 아래와 같습니다. 오류 문 zetal.tistory.com 2022. 12. 18.
I cant find push notifications in xcode https://developer.apple.com/forums/thread/127698 I cant find push notifications in … | Apple Developer Forums I have trouble finding the capability push notifications in xcode 11. am I missing something is this in the developer program ? developer.apple.com Automatically manage signing 언체크하기! 2022. 12. 18.
반응형