خرید بک لینک

Vote count: 0

I get a "fatal error: unexpectedly found nil while unwrapping an Optional value" when i try to update a label in swift. There must be something I am missing. These are the two variables involved:

Label and Double variable

And this is the func where I seem to get the error:

Method to update label

As far as I can see the variable that I want to update the label with has a value of 19.875531899929 and I want the label to show the Int part of that. Where does the nil come from? I am stuck finding the bug.

asked 50 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 16 مرداد 1395 ساعت: 17:53

صفحه بندی