On my crash report I get the following output at the top.
0x00000001001a6c80 function signature specialization <Arg[0] = Owned To Guaranteed> of
Test.MMCheckUserDetailsController.submitOrderButtonTapped
(Test.MMCheckUserDetailsController)() -> () (MMCheckUserDetailsController.swift:167)
Here is the code for this output:
func submitOrderButtonTapped() {
(L167) let roomNumberText = count(roomNumberTextField.text) > 0 ? roomNumberTextField.text : "0"
(L168) var myRoomNumber: Int32 = Int32(roomNumberText.toInt()!)
...
}
I do not see how this line can crash my app.
What does this error actually means?
You are use coalescing operator at Line Number 167 as below. and Try now.
let roomNumberText = roomNumberTextField.text ?? "0"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With