본문 바로가기

반응형

Front End/iOS

(5)
swift memory, closure Memory Management ARC(Auto Reference Counting) Reference Type (Heap memory에 저장) => 자동으로 관리 (참조 포인터 수를 counting.. 그 수가 0이 되면 toss.. Garbage Collection 기법과는 다름) > Garbage Collection : 힙 메모리를 간헐적으로 관찰하여 참조하지 않으면 날리는 방식 -> 예측 불가능한 불규칙한 메모리 정리 Influencing ARC strong ( default ) 기본적인 Reference Counting 방식 해당 포인터가 더 이상 해당 메모리를 참조하지 않을 때까지 힙 메모리 안에 머물도록 weak 힙에 있는 것을 사용하지 않는 다면, 힙에서 제거 후 nil로 설정 ( : opt..
Swift class / struct / enum class : property와 function을 가질 수 있음, 초기화 함수, 상속, reference type(pointer) 전달 struct : property와 function을 가질 수 있음, 초기화 함수, value type 전달 enum : case 저장소, value type 전달 value VS reference 전달 value copy.-> 즉 받는 변수의 타입까지 copy var x = y ( : array ) x.append(val) // y에 반영되지 않음 let 변수에 할당한 경우 변경할 수 없음 ( 상수임 (immutable)) let x = y ( : array ) x.append(val) reference 같은 메모리를 바라봄. Me..
Getting Started Develop iOS App app delegate AppDelegate클래스의 인스턴스. 앱의 상태에 따라 응답하는 콘텐츠가 그려지는 창을 만듬 application object iOS LifeCycle 관리
IOS IOS Documentation https://developer.apple.com/documentation/uikit#//apple_ref/doc/uid/TP40007072 UIKit | Apple Developer Documentation The UIKit framework provides the required infrastructure for your iOS or tvOS apps. It provides the window and view architecture for implementing your interface, the event handling infrastructure for delivering Multi-Touch and other types of input to your develop..
Swift obj-c c언어 기반의 언어.. swift 로 발전.. 신규 앱은 swift로 swift의 컴파일러는 swift기반의 언어는 컴파일러에 의해 컴퓨터 언어로 번역.. frameworks - additional code written by others.. - playing a sound.. Develop Tools xcode를 이용한 개발,, instrument를 통한 디버깅과 모니터링, simulator를 통한 빌드를 통해 실제 디바이스를 통해 검증 swift patterns & Best practices MVC 패턴.. App Ingredients + Developer ! 변수(var) 상수(let) let numberOfPlants: Int = 8 let diameterOfEarth: Float = ..

반응형