티스토리 뷰

카테고리 없음

iOS프로그래밍 Swift 언어

뽀로로친구에디 2018. 1. 3. 10:46

iOS프로그래밍 Swift 언어 배우기 

애플의 Swift 튜토리얼(http://developer.apple.com/swift)에 들어가면 자세한 정보를 얻을수 있습니다. 

Swift언어 시작하기 

1. Xcode를 시작한다. 


Get started with a playgroud 를 선택한다. 

iOS의 Blank를 선택한다.



var str = "Hello, playground"


var는 변수 타입이므로 str의 값을 변경할 수 있다.


let은 상수 타입이므로 str2의 값을 변경할 수 없다.

오류메시지 "Cannot assign to value: 'str2' is a 'let' constant

var는 변수 타입

let은 상수 타입


더 자세한 정보는 

https://swift.org/documentation/#the-swift-programming-language

The swift Programming Language (ePub)를 다운받아서 보세요. 

전자책이네요. 그런데 영어에요. 영어공부하면서 보세요. 

외국어는 닥쳐야 잘된다고 합니다. 




댓글
최근에 달린 댓글
글 보관함
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Total
Today
Yesterday
    뽀로로친구에디
    최근에 올라온 글