Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if isCelsius {
- textTemp.text = "\(Int(temp))°C"
- }else{
- let tempF = (temp * 9.0) / (5.0 + 32.0)
- textTemp.text = "\(Int(tempF))°F"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement