[Swift] Kmooc - swift 프로그래밍 (청강)

    01. Swift와 iOS 개요

    Unix - BSD - Next Step - macOs 

     ios 점유율은 전체의 30% 정도

    Cocoa Application : 사용자 이벤트에 응답, 앱의 동작을 관리 (ex. Siri, Sharing, Full Screen Mode)

    Media : 오디오 비주얼 미디어 재생 녹음 편집, 그래픽 렌더링 (framework 에서 제공하는 라이브러리)

    Core Service: 저수준 네트워크 통신을 위한 기본 서비스, 데이터 형식화, 문자열 조작( Quick Look, Security, Core Data, Foundation, Social, Webkit)

    Core Os : 하드웨어 및 네트워킹 (CPU 관련)

    Kernel & Device Drivers : 저수준 구성 요소, 파일시스템 보안 및 프로세스간 통신 지원

    mac os를 잘 변형시킨게 ios 

    Mac os iOS
    Cocoa Cocoa (touch) (Multi touch, Web view, Accelerometer, Localizaion, Camera..)
    Media Media (Core Audio, PDF ...)
    Core Service Core Service (SQLite, URL utility ... )
    Core OS Core OS (Keychain, File system, Sockets, Security)

    만들고자 하는 앱의 기능에 맞춰서 공부할 수 있음

    Foundaion : 메모리관리 ... 

    UIKit : user interface elements, application runtime ... <- developer.applecation.com 리소스 확인 가능

     

    ARC : 동일한 데이터를 다루는 앱이 별도로 여러개라면, 하나의 주소록 정보를 공유하도록 하는 것. 

    ios 8부터는 WatchKit 들어감. Swift 등장 (이전에는 objective c <- c언어를 객체지향버전으로 만든 것) 

    Xcode 6부터 Swift

    swift는 매 분기 변경되는 부분이 있음. (최적화 필요) 

     

     

    Swift 프로그래밍을 보다 쉽고, 유연하며 재미있게! 

    #include <studio.h>
    
    int main(void){
    print("Hello World");
    
    return 0;
    }

    (위: C 아래 Swift)

    print("Hello World")

    파이썬보다 간단하다... 

    https://swift.org

     

    Swift.org

    Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.

    www.swift.org

     


    개발환경구축

    https://developer.apple.com/

     

    Apple Developer

    There’s never been a better time to develop for Apple platforms.

    developer.apple.com

    https://support.apple.com/ko-kr/guide/playgrounds-ipad/welcome/ipados

    https://developer.apple.com/videos/play/wwdc2024/111976/

     

    18 things from WWDC24 - WWDC24 - Videos - Apple Developer

    Here's your guide to the big announcements from this year's Worldwide Developers Conference.

    developer.apple.com

     

    매킨토시 없이 개발해야 할 때 : 

    https://www.tutorialspoint.com/codingground.htm

     

    Online Programming Compilers

    Top Programming Languages Data Science Technologies Online Terminals Web Development Technologies Document Editors Online Compilers & Interpreters

    www.tutorialspoint.com

     

    https://www.onlinegdb.com/

     

    GDB online Debugger | Compiler - Code, Compile, Run, Debug online C, C++

    Online GDB is online compiler and debugger for C/C++. You can compile, run and debug code with gdb online. Using gcc/g++ as compiler and gdb as debugger. Currently C and C++ languages are supported.

    www.onlinegdb.com

    import foundation
    print("Hello Swift")

     

     

     

     

     

     

     

     

     

     

     

    댓글