NSData: unexpectedly found nil while unwrapping an Optional value

前端 未结 3 479
攒了一身酷
攒了一身酷 2021-01-29 07:47

It may be the basic swift quetion, But i am new to swift or iOS development. I am getting the error fatal error: unexpectedly found nil while unwrapping an Optional value<

3条回答
  •  执笔经年
    2021-01-29 08:17

    Well, error says it all! You are trying to forceful unwrap an optional. You should use if let syntax while unwrapping an optional.

提交回复
热议问题