In quick, how can I hide a UIButton?
Here is what I tried: button.enabled = false
button.enabled = false
However, this simply deletes the button without making it invisible.
Is there any way to make this quick? If so, how?
Thank!
... umm button.hidden = true. See Link to the UIView Class .
button.hidden = true
Be sure to look at the methods available in the parent classes when reading the documentation for the class.
NOTE. A later version of quick application button.isHidden = trueis the only option.
button.isHidden = true
For iOS 8+
Apple Documentation
, , :
:
, ViewWillAppear (animated: Bool)
override func ViewWillAppear(animated: Bool) { button.hidden = true }
Source: https://habr.com/ru/post/1569007/More articles:Точка останова на стороне сервера Meteor никогда не попадала в облако9 - debuggingHow to resize the GMSMarker icon in Google Maps for iOS? - iosUsing a nun writer - haskellJava converts a String that looks like an array to an array of strings or String ArrayList - javaThe huge Perm gene compared to the size of the application, is this normal? - javado nothing if inside quickly - swiftGet binary representation of a PIL image without saving - pythonConvert image to binary stream - pythonWhat is the history of $ {#} in bash - stringInjecting Stateful bean Scope of an internal query Bean - jsfAll Articles