Home>
Swift&ios11
I am frustrated with the book
UI parts customization-properties and methods-
import UIKit
var str = "Hello, playground"
var slider = "UISlider ()"
slider.value = 1.0
Error
Value of type 'String' has no member 'value'
error: MyPlayground.playground: 7: 8: error: value of type 'String' has no member 'value'
slider.value = 0.8
~~ ^ ~~~~
Please tell me why the code is the same as the code in the book but why I get an error!
-
Answer # 1
Related articles
- i'm new to the program i started learning kotlin because i wanted to make an android app, but an experienced programming person
- xcode - change the entry point from the second time onwards
- xcode - learning swift (beginner)
- i started the app with an actual build using x-code, but the current location is not displayed
- xcode - about first item and second item of constraint
- PyTorch Deep Learning Getting Started PyTorch Installation and Configuration
- A learning material that you should see for getting started with Python
- Linux learning second Java environment installation and configuration tutorial
Related questions
- xcode - i want to assign a variable value depending on the screen aspect ratio of swiftui/iphone
- xcode - [swiftui] i want to change the timer time
- ios - i want to display the initial text value of uitextfield in swiftui
- ios - swiftui/i want to change the colors of multiple objects at once
- xcode - i want to enter textfield when tapping swiftui button
- ios - the terminal screen remains blank for a while when debugging the actual device
- ios - it is about line breaks when using uitextview wrapped in swift ui
- ios - [in app store connect] i want to submit the app to the app store for review, but an error occurs
- xcode - swiftui/text input i want to automatically focus on the text field immediately after viwe is called
- [swiftui] view cannot be selected from xcode library
>"UISlider ()"
Because↓
>UISlider ()
"
does not exist, it means a code with a different meaning