Instead of this awkward if-else code, you could just write
label.hidden = slider.value-0.5;
And specify the red color and the text in the nib-file. And what's the point of the space before the comma in the stringWithFormat: call? You are emphasizing it, but beside that it's irrelevant it's even bad punctuation.
@mrjazzycharon2 The reason for the if-else code is to get people used to using them as this is a "Basics" tutorial. Of course it would be more basic to just do what you suggested but then people won't learn how to and become more fluent in using if-else statements.
As for the "," when initializing the string it's because:
1. I'm emphasizing it for the video's purpose.
2. I believe it looks neater and more pleasing to the eye.
@maxhasadhd I don't really understand. How can a slider have a .volume? Anyway your video is now up and its called "Changing sites with UISegmentedControl" and it's in the UIWebView playlist. Hope you like :D
I will get back to you tomorrow(10th April) on the UISlider stuff as it's late here.
@maxhasadhd Hey. Your Video is currently uploading and should be up by tonight but it keeps failing near the end of the upload :(. About the saving a UISlider I will get back to you.
Sorry, there shouldn't be a minus- but a smaller-character before 0.5.
mrjazzycharon2 2 months ago
Instead of this awkward if-else code, you could just write
label.hidden = slider.value-0.5;
And specify the red color and the text in the nib-file. And what's the point of the space before the comma in the stringWithFormat: call? You are emphasizing it, but beside that it's irrelevant it's even bad punctuation.
mrjazzycharon2 2 months ago
@mrjazzycharon2 The reason for the if-else code is to get people used to using them as this is a "Basics" tutorial. Of course it would be more basic to just do what you suggested but then people won't learn how to and become more fluent in using if-else statements.
As for the "," when initializing the string it's because:
1. I'm emphasizing it for the video's purpose.
2. I believe it looks neater and more pleasing to the eye.
I have my reasons for things :D.
Milmer.
MilmersXcode 2 months ago
@maxhasadhd Yea sorry it's just you put "Nameofslider.volume" in your last comment and I got a bit confused.
MilmersXcode 10 months ago
@maxhasadhd I don't really understand. How can a slider have a .volume? Anyway your video is now up and its called "Changing sites with UISegmentedControl" and it's in the UIWebView playlist. Hope you like :D
I will get back to you tomorrow(10th April) on the UISlider stuff as it's late here.
MilmersXcode 10 months ago
@maxhasadhd Hey. Your Video is currently uploading and should be up by tonight but it keeps failing near the end of the upload :(. About the saving a UISlider I will get back to you.
MilmersXcode 10 months ago