변수(Mutable Type)
var str = "hello, playGround"
str = "Hello, World"
변수 선언
var number = 7
= > 가능
상수(Immutable Type)
let language = "Swift"
language = "Objective-c"
-> Cannot assign to value : "laungage' is a 'let' constant
에러
'공부 > iOS' 카테고리의 다른 글
Swift Numbers& Booleans 정수, 실수 (0) | 2018.11.08 |
---|---|
Swift Naming Convention (0) | 2018.11.08 |
iOS ) UIImage VS CGImage VS CIImage (0) | 2018.11.03 |