적당한 고통은 희열이다

- 댄 브라운 '다빈치 코드' 중에서

반응형

Swift iOS 앱 개발 173

SwiftUI

기존의 UIKit 스토리보드방식 프로젝트가 커질수록 복잡해져 관리하기가 어렵고 협업 및 유지보수하기에도 매우 까다로움. SwiftUI 코드를 작성하는 동시에 디자인 인터페이스가 생성되고 프리뷰화면에서 바로 볼 수 있기 때문에 좋음. but iOS 13 이후의 운영체제에서 실행이 되기 때문에 최신 버전이 아닌 운영체제에서는 작동하지 않는다는 단점이 있다. 따라서 이전 버전까지 지원해야하는 앱이라면 SwiftUI는 적합하지 않음.

[iOS] 애플의 메모리 관리법 ARC

RC Reference Counting 애플에서 메모리 관리하는 방법 메모리를 할당하거나, 메모리 포인터를 참조할 때 레퍼런스 카운트를 증가시키고, 사용을 완료하면 레퍼런스 카운트를 감소시켜 메모리를 관리. MRC Manual Reference Counting Objective-C로 개발할 때에는 개발자가 직접 참조 관리를 했었다. alloc, new, copy, mutableCopy, retain 등을 사용해 레퍼런스 증가하고, release 등을 사용해 감소. ARC Automatic Reference Counting iOS 4 이상부터 자동으로 레퍼런스 카운트를 관리해주는 기능이 생김. 개발자가 메모리 관리에 대해 따로 생각할 필요가 없다. 메모리 참조 순환 Strong, Weak, Unowned ..

AppStore 첫 배포

심사 거부 당한 기존 앱을 변경하여 다시 빌드 후 심사 제출하는 일이라 나의 앱에서 새로 앱을 생성하고 certificate/profile을 생성하는 과정은 이미 다 되어있어서 생략- 리젝 사유를 보고 기존 프로젝트에서 수정후 다시 빌드를 했다. 에서 빌드 올리는 법 product - archive - distribute App - App Store Connect - Upload - App Store Connect distribution options 는 잘 모르지만 그냥 다 체크되어있는체로 넘어갔다 ㅋㅋㅋ certificte이랑 profile은 전임자분께서 만들어놓으셔서 그걸로 그대로 사용. 후 떨린다. Uploading…. 긴장되는 순간..!! 오! 성공적으로 업로드 되었다! 다시 가서 확인해보니 처..

[Stanford iOS] Lecture 9. Data Flow

SwiftUI Lecture 9. Property Wrappers Finally we get to talk about what @State, @Published, @ObservedObject really are! This is a very, very important topic. Publishers Just a very “light” treatment of this topic for now. Demo Publishers Palette Chooser (@Binding) Property Wrappers 앞에 @가 붙은 것들은 다 property wrappers. A property wrapper is actually a struct. @State : @Published : @ObservedObject : P..

[Stanford iOS] Lecture 7. Multithreading EmojiArt

SwiftUI Lecture 7. Colors and Images Color vs. UIColor Image vs. UIImage Multithreaded Programming Ensuring that my app is never “frozen” EmojiArt Demo Review MVVM ScrollView fileprivate Drag and Drop UIImage Multithreading Color vs. UIColor Color : color-specifier to color, shape or view. 대부분 생성/비교(creation/comparison)에 한정되어있는 제한적인 API. *API : Application Program Interface 라이브러리에 접근하기 위한 규칙들을 정..

[Swift] Stored and Computed Variables 저장/연산 프로퍼티

Variables are declared using the var keyword. These declarations are valid at the top level, within types, and within code bodies, and are respectively known as global variables, member variables, and local variables. Member variables are commonly referred to as properties. Every variable declaration can be classified as either stored or computed. Stored Property 저장 프로퍼티 : saves a value for use ..

[Stanford iOS] Lecture 5. ViewBuilder + Shape + ViewModifier

SwiftUI Lecture 5. SwiftUI Access Control @ViewBuilder - What exactly is that argument to ZStack, ForEach, GeometryReader, etc? Shape - What if I wnat to draw my own View rather than construct it from other Views? Animation - Mobile app UIs look pretty bad without animation. Luckily in SwiftUI, animation (almost) comes for free! ViewModifier - What exactly are functions like foregroundColor, fon..

728x90
반응형