iOS/iOS Swift Udemy - AngelaYu

swift unwrapping 오류 관련

Developer-Michelle 2023. 1. 2. 14:08

Clima project 중...

 

unwrapping 오류 뜨는 경우 해결점이 되는 방법 중 하나 :

if let 이용하면 weather이 반드시 존재할 경우에만 if let 안의 구문 실행하므로 저 오류가 사라질 수 있다. (guard let 과도 같은 맥락)