Reputation: 33307
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?
Upvotes: 3
Views: 1691
Reputation: 23407
You are use coalescing operator at Line Number 167 as below. and Try now.
let roomNumberText = roomNumberTextField.text ?? "0"
Upvotes: 3