Your First iOS App - Part 14: Variables | Ray Wenderlich Videos

Learn how to detect when the user moves the slider, and how to store the result in a variable.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5993-your-first-ios-app/lessons/14

so does swift automatically assume that slider.value is already a float? is that why you need to use “Int(slider.value)”??

@anon44759713 value is a Float for UISlider, so you cast it to Int with Int(slider.value) in this case. You can read more about the whole thing over here:

https://developer.apple.com/documentation/uikit/uislider/1621346-value

Please let me know if you have any other questions or issues. Thank you!

This chapter is not very well explanatory…Lots of new concept with proper explanation

@viicktur Please let me know what you don’t understand exactly when you get a chance. Thank you!

Me very much confusiated. You tell me @05:52 build runs fine, but on tv screen build failed. why you say build run fine and it fail?

@darrenjay Please let me know what error do you get exactly when you get a chance. Thank you!

Its fine now, ive worked it out, it was a spelling error. However i now have bigger issues, i can not view any of the videos on the site. from one problemo to another problemo. May the God’s swiftly resolve this

@darrenjay Do you still have issues with this?