1. 에러 내용 :
Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
원인
resultString.text = "Insert String : \(nameTextFiled.text)!"
해결
if let nameString = nameTextFiled.text{
resultString.text = "Insert String : \(nameString)!"
}
'iOS > Swift' 카테고리의 다른 글
Swift UI Component 01 (0) | 2024.07.17 |
---|---|
Swift Property Wrappers (0) | 2024.07.17 |
Swift List 사용해보기 (0) | 2024.07.09 |
Swift Stat 와 Binding (0) | 2024.07.08 |
Swift Hashable Protocol (0) | 2024.07.08 |